var s ='string interpolation';assert('Dart has $s, which is very handy.'=='Dart has string interpolation, '+'which is very handy.'); assert('That deserves all caps. '+'${s.toUpperCase()} is very handy!'=='That deserves all caps. '+'STRING INTERPOLATION is very handy!');
var user =User();//这里实例化一个类Widget _UserInfotmation(){returnContainer(child:Row(children:[Column(children:[FlatButton(onPressed:(){print(user.id);//点击输入000001,正确,user.id是一个类成员print(user.name);},child:Image(image:AssetImage(user.headImage),width:150.0,height:150.0,))],),Column(children:[Text('Name: $user.name'//此处不加花括号,则会显示Instance of User.name,正确的显示应该是000001),Text('ID: $user.id'),],)],),);}