Product class Null safety
Constructors
-
Product({int? id, String? productCode, String? promoText, String? bogoPromoText, double? price, double? finalPrice, double? discountValue, double? discountType, bool? isAddedtoWishlist, bool? isOutOfStock, bool? preOrder, String? availabilityDate, String? croppedImageUrl, bool? enableCropping, int? colorOptions, int? colorId, int? sizeId, String? size, String? color, List<
Size> ? sizes, List<ColorModel> ? colors}) -
Product.fromJson(Map<
String, dynamic> json) -
factory
Properties
- availabilityDate ↔ String?
-
read / write
- bogoPromoText ↔ String?
-
read / write
- color ↔ String?
-
read / write
- colorId ↔ int?
-
read / write
- colorOptions ↔ int?
-
read / write
-
colors
↔ List<
ColorModel> ? -
read / write
- croppedImageUrl ↔ String?
-
read / write
- discountType ↔ double?
-
read / write
- discountValue ↔ double?
-
read / write
- enableCropping ↔ bool?
-
read / write
- finalPrice ↔ double?
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id ↔ int?
-
read / write
- isAddedtoWishlist ↔ bool?
-
read / write
- isOutOfStock ↔ bool?
-
read / write
- preOrder ↔ bool?
-
read / write
- price ↔ double?
-
read / write
- productCode ↔ String?
-
read / write
- promoText ↔ String?
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- size ↔ String?
-
read / write
- sizeId ↔ int?
-
read / write
-
sizes
↔ List<
Size> ? -
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited