- introPage.dart: Convert fireItems to proper static function closure - mainDrawer.dart: Convert unreadCount int to String for Text widget
61 lines
1.4 KiB
Dart
61 lines
1.4 KiB
Dart
import '../models/fireMapState.dart';
|
|
import '../models/fireNotification.dart';
|
|
import '../models/yourLocation.dart';
|
|
|
|
abstract class FiresMapActions {}
|
|
|
|
class UpdateYourLocationMapAction extends FiresMapActions {
|
|
|
|
UpdateYourLocationMapAction(
|
|
this.loc,
|
|
);
|
|
final YourLocation loc;
|
|
}
|
|
|
|
class UpdateFireMapStatsAction extends FiresMapActions {
|
|
|
|
UpdateFireMapStatsAction(
|
|
{required this.numFires,
|
|
required this.fires,
|
|
required this.falsePos,
|
|
required this.industries});
|
|
int numFires;
|
|
List<dynamic> fires = <dynamic>[];
|
|
List<dynamic> falsePos = <dynamic>[];
|
|
List<dynamic> industries = <dynamic>[];
|
|
}
|
|
|
|
class ShowYourLocationMapAction extends FiresMapActions {
|
|
|
|
ShowYourLocationMapAction(this.loc);
|
|
YourLocation loc;
|
|
}
|
|
|
|
class ShowFireNotificationMapAction extends FiresMapActions {
|
|
|
|
ShowFireNotificationMapAction(this.notif);
|
|
FireNotification notif;
|
|
}
|
|
|
|
class EditYourLocationAction extends FiresMapActions {
|
|
|
|
EditYourLocationAction(this.loc);
|
|
YourLocation loc;
|
|
}
|
|
|
|
class EditConfirmYourLocationAction extends FiresMapActions {
|
|
|
|
EditConfirmYourLocationAction(this.loc);
|
|
YourLocation loc;
|
|
}
|
|
|
|
class EditCancelYourLocationAction extends FiresMapActions {
|
|
EditCancelYourLocationAction(this.loc);
|
|
YourLocation loc;
|
|
}
|
|
|
|
class SelectMapLayerAction extends FiresMapActions {
|
|
|
|
SelectMapLayerAction(this.layer);
|
|
final FireMapLayer layer;
|
|
}
|