blob: 8c328b7205f532a94f103e28d56dccb8a33b92e4 [file] [log] [blame]
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
enum Category {
all,
accessories,
clothing,
home,
}
class Product {
const Product({
required this.category,
required this.id,
required this.isFeatured,
required this.name,
required this.price,
});
final Category category;
final int id;
final bool isFeatured;
final String name;
final int price;
String get assetName => '$id-0.jpg';
String get assetPackage => 'shrine_images';
@override
String toString() => '$name (id=$id)';
}