setState method

void setState({
  1. bool? enabled,
  2. bool? executing,
  3. String? errorMessage,
})
inherited

Sets the current state of the command.

Implementation

void setState({bool? enabled, bool? executing, String? errorMessage}) {
  _state = state.copyWith(
    enabled: enabled,
    executing: executing,
    errorMessage: errorMessage,
  );
}