Skip to content

Instantly share code, notes, and snippets.

@zonble
Created January 8, 2020 14:28
Show Gist options
  • Save zonble/cb37395c8ed05efde748a646ebc71ed8 to your computer and use it in GitHub Desktop.
Save zonble/cb37395c8ed05efde748a646ebc71ed8 to your computer and use it in GitHub Desktop.
import 'package:meta/meta.dart';
class CoordinatorStatus {}
class UserinfoModel {}
class _UserStatus extends CoordinatorStatus {
UserinfoModel model;
_UserStatus({this.model});
}
class _UnBookingStatus extends _UserStatus {
_UnBookingStatus({@required UserinfoModel model}) : super(model: model);
}
class _BookingStatus extends _UserStatus {
_BookingStatus({@required UserinfoModel model}) : super(model: model);
}
void main() {
var ubs = _UnBookingStatus(model: UserinfoModel());
print(ubs.model);
var bs = _BookingStatus(model: UserinfoModel());
print(bs.model);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment