state.dart
537 Bytes
import 'package:wow_english/models/app_version_entity.dart';
import 'package:wow_english/models/popup_entity.dart';
class HomeState {
HomeState init() {
return HomeState();
}
HomeState clone() {
return HomeState();
}
}
class UpdateDialogState extends HomeState {
final AppVersionEntity appVersionEntity;
final bool forceUpdate;
UpdateDialogState(this.forceUpdate, this.appVersionEntity);
}
class PopupDialogState extends HomeState {
final PopupEntity popupEntity;
PopupDialogState(this.popupEntity);
}