generate method

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

Implementation

@override
Widget generate(Context context) {
  var score = Score(Entity.PlayerName(name), counter);
  var filePath = '$path/$name';
  return For.of([
    score.set(0),
    File.execute(filePath,
        child: For.of([
          child,
          score.add(1),
          If(
            score.matchesRange(Range.to(to)),
            then: [
              Schedule(filePath, ticks: ticks),
            ],
          )
        ]))
  ]);
}