TimerNode constructor

TimerNode({
  1. required double interval,
  2. bool? repeat,
  3. int? count,
  4. bool? cleanup,
  5. bool? enabled,
  6. int? priority,
  7. Iterable<Node> children = const [],
})

Implementation

TimerNode({
  required this.interval,
  bool? repeat,
  int? count,
  bool? cleanup,
  super.enabled,
  super.priority,
  super.children,
}) : assert(interval > 0, 'Interval must be positive.'),
     repeat = repeat ?? false,
     count = count ?? 1,
     cleanup = cleanup ?? false;