ProductModel class

Constructors

ProductModel({required String documentID, required String appId, String? title, String? about, double? price, double? weight, ShopModel? shop, List<ProductImageModel>? images, PosSizeModel? posSize})

Properties

about String?
getter/setter pair
appId String
getter/setter pairoverride
documentID String
getter/setter pairoverride
hashCode int
The hash code for this object.
no setteroverride
images List<ProductImageModel>?
getter/setter pair
posSize ↔ PosSizeModel?
getter/setter pair
price double?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shop ShopModel?
getter/setter pair
title String?
getter/setter pair
weight double?
getter/setter pair

Methods

collectReferences({String? appId}) Future<List<ModelReference>>
override
copyWith({String? documentID, String? appId, String? title, String? about, double? price, double? weight, ShopModel? shop, List<ProductImageModel>? images, PosSizeModel? posSize}) ProductModel
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEntity({String? appId}) ProductEntity
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromEntity(String documentID, ProductEntity? entity) Future<ProductModel?>
fromEntityPlus(String documentID, ProductEntity? entity, {String? appId}) Future<ProductModel?>

Constants

id → const String
packageName → const String