refactor: continue lint cleanup - 96 more issues fixed
- Add @immutable to classes with ==/hashCode (homePage, basicLocation, fireNotification, yourLocation, monitoredAreas) - Fix camel_case_types (genericMap → GenericMap) - Fix avoid_dynamic_calls (firesApi - typed responses) - Fix use_build_context_synchronously (locationUtils) - Fix always_put_control_body_on_new_line (4 reducers) - Fix always_specify_types (placesAutocompleteUtils, reducers) - Fix eol_at_end_of_file (4 files) - Fix prefer_function_declarations_over_variables (introPage) - Fix flutter_style_todos (fireMapReducer) Build: APK generated, 0 errors, 0 warnings
This commit is contained in:
parent
862d423f6b
commit
68ad4adbcf
23 changed files with 118 additions and 95 deletions
|
|
@ -4,7 +4,6 @@ import '../models/fireNotification.dart';
|
|||
abstract class FireNotificationActions {}
|
||||
|
||||
class DeleteFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
DeleteFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
|
|
@ -14,13 +13,11 @@ class DeleteAllFireNotificationAction extends FireNotificationActions {
|
|||
}
|
||||
|
||||
class AddFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
AddFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
|
||||
class DeletedFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
DeletedFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
|
|
@ -30,32 +27,27 @@ class DeletedAllFireNotificationAction extends FireNotificationActions {
|
|||
}
|
||||
|
||||
class AddedFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
AddedFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
|
||||
class ReadFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
ReadFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
|
||||
class ReadedFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
ReadedFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
|
||||
class MarkFireAsFalsePositiveAction extends FireNotificationActions {
|
||||
|
||||
MarkFireAsFalsePositiveAction(this.notif, this.type);
|
||||
final FireNotification notif;
|
||||
final FalsePositiveType type;
|
||||
}
|
||||
|
||||
class UpdatedFireNotificationAction extends FireNotificationActions {
|
||||
|
||||
UpdatedFireNotificationAction(this.notif);
|
||||
final FireNotification notif;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue