ProductInCartState class

Annotations

Constructors

ProductInCartState({@Default(ProductInCartStatus.initial) ProductInCartStatus status, ProductEntity? product, @Default(false) bool isRemoved, @Default(false) bool isQuantityExceeded, @Default(0) num quantity, String? error})
const
factory

Properties

copyWith → $ProductInCartStateCopyWith<ProductInCartState>
Create a copy of ProductInCartState with the given fields replaced by the non-null parameter values.
no setterinherited
error → String?
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isQuantityExceeded → bool
no setterinherited
isRemoved → bool
no setterinherited
product → ProductEntity?
no setterinherited
quantity → num
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → ProductInCartStatus
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