Created
October 24, 2021 15:14
-
-
Save perymerdeka/13ed0fc5330df17d7704c668df1b381f to your computer and use it in GitHub Desktop.
my store product models
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Product { | |
final String id; | |
final String title; | |
final String description; | |
final double price; | |
final String imageUrl; | |
bool isFavorite; | |
Product({ | |
required this.id, | |
required this.title, | |
required this.description, | |
required this.price, | |
required this.imageUrl, | |
this.isFavorite = false, | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment