canExecute property

ValueListenable<bool> canExecute

ValueListenable<bool> that changes its value on any change of the current executability state of the command. Meaning if the command can be executed or not. This will issue false while the command executes, but also if the command receives a true from the restriction ValueListenable that you can pass when creating the Command. its value is !restriction.value && !isExecuting.value

Implementation

ValueListenable<bool> get canExecute => _canExecute;