OrderItemModel class
Constructors
- OrderItemModel({required String documentID, int? amount, required String appId, double? soldPrice, 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
- soldPrice ↔ double?
-
getter/setter pair
Methods
-
collectReferences(
{String? appId}) → Future< List< ModelReference> > -
override
-
copyWith(
{String? documentID, int? amount, String? appId, double? soldPrice, ProductModel? product}) → OrderItemModel -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toEntity(
{String? appId}) → OrderItemEntity -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromEntity(
String documentID, OrderItemEntity? entity) → Future< OrderItemModel?> -
fromEntityPlus(
String documentID, OrderItemEntity? entity, {String? appId}) → Future< OrderItemModel?>
Constants
- id → const String
- packageName → const String