copyWith method

CommandState copyWith({
  1. bool? enabled,
  2. bool? executing,
  3. String? errorMessage,
})

Standard copyWith(...) function.

Implementation

CommandState copyWith(
    {bool? enabled, bool? executing, String? errorMessage}) {
  return CommandState(
      enabled = enabled ?? this.enabled,
      executing = executing ?? this.executing,
      errorMessage = errorMessage ?? this.errorMessage);
}