Schedule.file constructor

Schedule.file(
  1. File? _file, {
  2. required Time ticks,
  3. ScheduleMode? mode,
})

You can use Schedule.file that requires a file instead to define both in one statement.

Implementation

Schedule.file(this._file, {required this.ticks, this.mode})
    : assert(_file != null),
      _name = _file!.path {
  _file!.execute = true;
}