add project
This commit is contained in:
34
lib/model/products.dart
Normal file
34
lib/model/products.dart
Normal file
@@ -0,0 +1,34 @@
|
||||
class ProductModel {
|
||||
final String? id;
|
||||
final String? name;
|
||||
bool select;
|
||||
|
||||
ProductModel({this.id, this.name, this.select = false});
|
||||
|
||||
static List<ProductModel> person = [
|
||||
ProductModel(
|
||||
id: '0001',
|
||||
name: 'brahim',
|
||||
),
|
||||
ProductModel(
|
||||
id: '0002',
|
||||
name: 'Bong Tharoth',
|
||||
),
|
||||
ProductModel(
|
||||
id: '0003',
|
||||
name: 'B Sambo',
|
||||
),
|
||||
ProductModel(
|
||||
id: '0004',
|
||||
name: 'Bong MengSreang',
|
||||
),
|
||||
ProductModel(
|
||||
id: '0005',
|
||||
name: 'brahim',
|
||||
),
|
||||
];
|
||||
|
||||
void setSelected() {
|
||||
select = !select;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user