CartItemModel class

Constructors

CartItemModel({required String documentID, int? amount, required String appId, ProductModel? product})

Properties

amount int?
getter/setter pair
appId String
getter/setter pairoverride
documentID String
getter/setter pairoverride
hashCode int
The hash code for this object.
no setteroverride
product ProductModel?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

collectReferences({String? appId}) Future<List<ModelReference>>
override
copyWith({String? documentID, int? amount, String? appId, ProductModel? product}) CartItemModel
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEntity({String? appId}) CartItemEntity
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromEntity(String documentID, CartItemEntity? entity) Future<CartItemModel?>
fromEntityPlus(String documentID, CartItemEntity? entity, {String? appId}) Future<CartItemModel?>

Constants

id → const String
packageName → const String