Simply i have to classes child and parent class
i am new in dart language all i need to assign super class properties from child class
这就是超类 struct
class Trip{
final int id;
final String title;
final double price;
Trip({this.id,this.title,this.price});
}
这是 children 班
class FullTrip extends Trip{
final String data;
FullTrip({this.data}) : super(id:id,title:title,price:price);
}
sure this not working at all
the question is : how can i initialize instance from FullTrip and pass variable for FullTrip and Trip(super class)
thanks in advance