Command constructor
Command(
- void function(), [
- bool canExecuteFunction()?
Implementation
Command(void Function() function, [bool Function()? canExecuteFunction])
: _function = function {
_canExecuteFunction = canExecuteFunction ?? () => true;
}