generate method

  1. @override
Widget generate(
  1. Context context
)
override

Implementation

@override
Widget generate(Context context) {
  if (_stop == true) return Entity.All().addTag('objd_$name');

  //if(context.prod){
  if (infinite) {
    children.add(Schedule('$path/$name', ticks: ticks));
  } else {
    children.addAll([
      If(Condition.not(Entity.All(tags: ['objd_$name'])),
          then: [Schedule('$path/$name', ticks: ticks)]),
      Entity.All().removeTag('objd_$name')
    ]);
  }

  //}

  return File.execute('$path/$name', child: For.of(children));
}