ProductDataCache class
Constructors
-
ProductDataCache({required String id, required DateTime timeModify, required List<
StringData> name, required bool visible, required double discPrice, required double price, required List<String> category, required List<String> providers, required double rating, required String image, required int stock, required bool delete}) - ProductDataCache.createEmpty(String id)
-
factory
-
ProductDataCache.fromJson(String id, Map<
String, dynamic> data, {bool local = false}) -
factory
Properties
-
category
↔ List<
String> -
getter/setter pair
- delete ↔ bool
-
getter/setter pair
- discPrice ↔ double
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
getter/setter pair
- image ↔ String
-
getter/setter pair
-
name
↔ List<
StringData> -
getter/setter pair
- price ↔ double
-
getter/setter pair
-
providers
↔ List<
String> -
getter/setter pair
- rating ↔ double
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stock ↔ int
-
getter/setter pair
- timeModify ↔ DateTime
-
getter/setter pair
- visible ↔ bool
-
getter/setter pair
Methods
-
compareToVisible(
ProductDataCache b) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{bool local = false}) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited