class Space{
List? photos;
}
Space({
this.photos=[],
//The default value of an optional parameter must be constant.
});
CodePudding user response:
Space({ this.photos = const []})
It should works :)
class Space{
List? photos;
}
Space({
this.photos=[],
//The default value of an optional parameter must be constant.
});
CodePudding user response:
Space({ this.photos = const []})
It should works :)