MatexCountryBlocState class

Represents the state for MatexCountryBloc which manages country data.

Inheritance
  • Object
  • TModel
  • BlocState
  • MatexCountryBlocState

Constructors

MatexCountryBlocState({List<MatexCountryMetadata>? countries, bool isInitializing = false, bool isInitialized = false})
Constructs a MatexCountryBlocState with given properties.

Properties

countries List<MatexCountryMetadata>
Holds the metadata about countries.
final
error → dynamic
Whether the bloc has an error.
finalinherited
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
isInitialized bool
Whether the bloc is initialized.
finalinherited
isInitializing bool
Whether the bloc is initializing.
finalinherited
props List<Object>
Returns a list of properties which are used for comparison.
no setter
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() MatexCountryBlocState
Creates a new instance of MatexCountryBlocState with same properties.
override
copyWith({List<MatexCountryMetadata>? countries, bool? isInitializing, bool? isInitialized}) MatexCountryBlocState
Creates a copy of this state but with the given fields replaced with the new values. If a value is not provided, it defaults to the current value.
override
copyWithDefaults() → TModel
inherited
merge(covariant MatexCountryBlocState model) MatexCountryBlocState
Merges the given model into this state by overwriting properties.
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