ProductState class
- Annotations
Constructors
- ProductState({@Default(ProductStatus.initial) ProductStatus status, @Default(ProductStatus.initial) ProductStatus addToCartStatus, @Default(ProductStatus.initial) ProductStatus removeFromCartStatus, @Default(null) ProductEntity? product, @Default(0) int currentImageIndex, num? quantity, num? calculatedPrice, String? addToCartErrorMessage})
-
factory
Properties
- addToCartErrorMessage → String?
-
no setterinherited
- addToCartStatus → ProductStatus
-
no setterinherited
- calculatedPrice → num?
-
no setterinherited
-
copyWith
→ $ProductStateCopyWith<
ProductState> -
Create a copy of ProductState
with the given fields replaced by the non-null parameter values.
no setterinherited
- currentImageIndex → int
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- product → ProductEntity?
-
no setterinherited
- quantity → num?
-
no setterinherited
- removeFromCartStatus → ProductStatus
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ProductStatus
-
no setterinherited
Methods
-
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