copyWith method
FastCalculatorBlocState<F, R>
copyWith({
- Map<
String, dynamic> ? metadata, - bool? isInitializing,
- bool? isInitialized,
- R? results,
- F? fields,
- bool? isValid,
- bool? isDirty,
- bool? isBusy,
override
Creates a new instance of FastCalculatorBlocState
with updated values.
Implementation
@override
FastCalculatorBlocState<F, R> copyWith({
Map<String, dynamic>? metadata,
bool? isInitializing,
bool? isInitialized,
R? results,
F? fields,
bool? isValid,
bool? isDirty,
bool? isBusy,
}) {
return FastCalculatorBlocState<F, R>(
metadata: metadata ?? this.metadata,
isInitializing: isInitializing ?? this.isInitializing,
isInitialized: isInitialized ?? this.isInitialized,
results: results ?? this.results,
fields: fields ?? this.fields,
isValid: isValid ?? this.isValid,
isDirty: isDirty ?? this.isDirty,
isBusy: isBusy ?? this.isBusy,
);
}