FastCalculatorBlocState<F extends FastCalculatorFields, R extends FastCalculatorResults> class

Represents the state of a calculator's bloc.

Inheritance
  • Object
  • TModel
  • BlocState
  • FastCalculatorBlocState

Constructors

FastCalculatorBlocState({bool isInitializing = false, bool isInitialized = false, bool isBusy = false, required R results, required F fields, bool isValid = false, bool isDirty = false, Map<String, dynamic> metadata = const {}})

Properties

error → dynamic
Whether the bloc has an error.
finalinherited
fields → F
final
hasError bool
Indicates whether the bloc has an error.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isBusy bool
Whether the bloc is busy.
finalinherited
isDirty bool
final
isInitialized bool
Whether the bloc is initialized.
finalinherited
isInitializing bool
Whether the bloc is initializing.
finalinherited
isValid bool
final
metadata Map<String, dynamic>
final
props List<Object?>
A list of objects representing the instance variables of the FastCalculatorBlocState class.
no setter
results → R
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
uuid String
The unique identifier of the bloc state.
finalinherited

Methods

assignValue<T>(T? value, {T? defaultValue, bool loose = true}) → T?
inherited
clone() FastCalculatorBlocState<F, R>
Creates a new instance of FastCalculatorBlocState that is a clone of the current state.
override
copyWith({Map<String, dynamic>? metadata, bool? isInitializing, bool? isInitialized, R? results, F? fields, bool? isValid, bool? isDirty, bool? isBusy}) FastCalculatorBlocState<F, R>
Creates a new instance of FastCalculatorBlocState with updated values.
override
copyWithDefaults() → TModel
inherited
merge(covariant FastCalculatorBlocState<F, R> model) FastCalculatorBlocState<F, R>
Merges the current state with another instance of FastCalculatorBlocState.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited