import 'package:flutter/cupertino.dart'; // class Campus{ // String name; // late int id; // static int _id_count=0; // Mapcanteens=new Map(); // Campus(this.name){id=++_id_count;} // Canteen addCanteen(String name){ // canteens[name]=new Canteen(name); // return canteens[name]!; // } // } // class Canteen{ // String name; // Dishes daily=new Dishes(); //当日菜品(固定) // Dishes special=new Dishes();//特色菜品 // Dishes nowaday=new Dishes();//当日新菜 // Canteen(this.name); // } class Dish{ String name; String cost; //价格 String time; //供应时间 //String category; //菜品分类:当日菜品(固定),特色菜品,当日新菜 //String campus; //校区 String canteen; //食堂 bool star=false,like=false; //DateTime? star_time=null; Dish(this.name,this.cost,this.time,this.canteen,{bool like=false,bool star=false,DateTime? star_time}){ this.like=like; this.star=star; //if(star_time!=null)this.star_time=star_time; } }