generate method

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

Implementation

@override
Widget generate(Context context) {
  return For.of([
    if (steps >= 0) _score.add(steps),
    if (steps < 0) _score.subtract(-steps),
    If(_score.matches(ticks.ticks), then: [
      File(path + name, execute: true, create: false),
    ]),
  ]);
}