Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main() {
- final food = Food('good', price: 3);
- print('${food.taste} ${food.price.toString()}');
- }
- class Food {
- Food(this.taste, {this.price});
- final String taste;
- final int price;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement