Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void main() {
  2. final food = Food('good', price: 3);
  3.  
  4. print('${food.taste} ${food.price.toString()}');
  5. }
  6.  
  7. class Food {
  8. Food(this.taste, {this.price});
  9.  
  10. final String taste;
  11. final int price;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement