Command0 constructor

Command0({
  1. required Future<void> action(),
  2. bool canExecute() = _defaultCanExecute,
})

Command with no argument

Implementation

Command0({
  required Future<void> Function() action,
  super.canExecute,
}) : _action = action;