File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 27
27
run : flutter pub get
28
28
29
29
- name : Static Analysis
30
- run : dart analyze
30
+ run : flutter analyze
31
31
32
32
- name : Ensure the Dart code is formatted correctly
33
33
run : flutter format --set-exit-if-changed --dry-run .
Original file line number Diff line number Diff line change @@ -23,12 +23,19 @@ class OneSignal {
23
23
/// Note that the iOS and Android native libraries are static,
24
24
/// so if you create multiple instances of OneSignal, they will
25
25
/// mostly share the same state.
26
+ // ignore: non_constant_identifier_names
26
27
static OneSignalDebug Debug = new OneSignalDebug ();
28
+ // ignore: non_constant_identifier_names
27
29
static OneSignalUser User = new OneSignalUser ();
30
+ // ignore: non_constant_identifier_names
28
31
static OneSignalNotifications Notifications = new OneSignalNotifications ();
32
+ // ignore: non_constant_identifier_names
29
33
static OneSignalSession Session = new OneSignalSession ();
34
+ // ignore: non_constant_identifier_names
30
35
static OneSignalLocation Location = new OneSignalLocation ();
36
+ // ignore: non_constant_identifier_names
31
37
static OneSignalInAppMessages InAppMessages = new OneSignalInAppMessages ();
38
+ // ignore: non_constant_identifier_names
32
39
static OneSignalLiveActivities LiveActivities = new OneSignalLiveActivities ();
33
40
34
41
// private channels used to bridge to ObjC/Java
Original file line number Diff line number Diff line change @@ -362,9 +362,7 @@ class OSNotificationWillDisplayEvent extends JSONStringRepresentable {
362
362
}
363
363
364
364
void preventDefault () {
365
- if (notification != null ) {
366
- OneSignal .Notifications .preventDefault (notification.notificationId);
367
- }
365
+ OneSignal .Notifications .preventDefault (notification.notificationId);
368
366
}
369
367
370
368
String jsonRepresentation () {
@@ -383,9 +381,7 @@ class OSNotificationClickEvent extends JSONStringRepresentable {
383
381
}
384
382
385
383
void preventDefault () {
386
- if (notification != null ) {
387
- OneSignal .Notifications .preventDefault (notification.notificationId);
388
- }
384
+ OneSignal .Notifications .preventDefault (notification.notificationId);
389
385
}
390
386
391
387
String jsonRepresentation () {
You can’t perform that action at this time.
0 commit comments