@@ -23,25 +23,31 @@ class AndroidNotificationsConfig {
2323 BoolGetter ? enableLightsGetter,
2424 BoolGetter ? enableVibrationGetter,
2525 }) {
26- this .channelIdGetter =
27- channelIdGetter ?? (msg) => msg.notification? .android? .channelId ?? defaultChannelId;
26+ this .channelIdGetter = channelIdGetter ??
27+ (msg) => msg.notification? .android? .channelId ?? defaultChannelId;
2828 this .channelNameGetter = channelNameGetter ?? (_) => defaultChannelName;
29- this .channelDescriptionGetter = channelDescriptionGetter ?? (_) => defaultChannelDescription;
29+ this .channelDescriptionGetter =
30+ channelDescriptionGetter ?? (_) => defaultChannelDescription;
3031 this .appIconGetter = appIconGetter ?? (_) => defaultAppIcon;
3132 this .colorGetter = colorGetter ?? (_) => defaultColor;
3233 this .groupKeyGetter = groupKeyGetter ?? (_) => defaultGroupKey;
33- this .tagGetter = tagGetter ?? (msg) => msg.notification? .android? .tag ?? defaultTag;
34- this .smallIconUrlGetter =
35- smallIconUrlGetter ?? (msg) => msg.notification? .android? .smallIcon ?? defaultSmallIcon;
34+ this .tagGetter =
35+ tagGetter ?? (msg) => msg.notification? .android? .tag ?? defaultTag;
36+ this .smallIconUrlGetter = smallIconUrlGetter ??
37+ (msg) => msg.notification? .android? .smallIcon ?? defaultSmallIcon;
3638 this .importanceGetter = importanceGetter ?? (_) => defaultImportance;
3739 this .priorityGetter = priorityGetter ?? (_) => defaultPriority;
38- this .soundGetter = soundGetter ?? (msg) => msg.notification? .android? .sound ?? defaultSound;
40+ this .soundGetter = soundGetter ??
41+ (msg) => msg.notification? .android? .sound ?? defaultSound;
3942 this .iconGetter = iconGetter ?? (_) => defaultIcon;
40- this .imageUrlGetter = imageUrlGetter ?? (msg) => msg.notification? .android? .imageUrl ?? defaultImageUrl;
41- this .hideExpandedLargeIconGetter = hideExpandedLargeIconGetter ?? (_) => defaultHideExpandedLargeIcon;
43+ this .imageUrlGetter = imageUrlGetter ??
44+ (msg) => msg.notification? .android? .imageUrl ?? defaultImageUrl;
45+ this .hideExpandedLargeIconGetter =
46+ hideExpandedLargeIconGetter ?? (_) => defaultHideExpandedLargeIcon;
4247 this .playSoundGetter = playSoundGetter ?? (_) => defaultPlaySound;
4348 this .enableLightsGetter = enableLightsGetter ?? (_) => defaultEnableLights;
44- this .enableVibrationGetter = enableVibrationGetter ?? (_) => defaultEnableVibration;
49+ this .enableVibrationGetter =
50+ enableVibrationGetter ?? (_) => defaultEnableVibration;
4551 }
4652
4753 /// {@template channelIdGetter}
@@ -285,7 +291,9 @@ class AndroidNotificationsConfig {
285291 tag: tagGetter (message),
286292 priority: priorityGetter (message),
287293 groupKey: groupKeyGetter (message),
288- sound: androidSound == null ? null : RawResourceAndroidNotificationSound (androidSound),
294+ sound: androidSound == null
295+ ? null
296+ : RawResourceAndroidNotificationSound (androidSound),
289297 icon: iconGetter (message),
290298 playSound: playSoundGetter (message),
291299 enableLights: enableLightsGetter (message),
0 commit comments