ObjectCubitState<Value, ExtraData> class
abstract
- Implementers
Constructors
- ObjectCubitState({required bool? hasValue, required Value? value, required ExtraData? extraData})
Properties
- extraData → ExtraData?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasValue → bool?
-
If the current state contains the value it returns true otherwise false
When the state is not ObjectCubitUpdated the value will be null
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
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 - value → Value?
-
Represents the current state value
final
Methods
-
copyWith(
{Optional< ExtraData?> extraData = const Optional()}) → ObjectCubitState<Value, ExtraData> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toUpdated(
{required bool hasValue, required Value? value}) → ObjectCubitState< Value, ExtraData> -
toUpdateFailed(
{required Object? failure}) → ObjectCubitState< Value, ExtraData> -
toUpdating(
) → ObjectCubitState< Value, ExtraData>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited