update to relative import
This commit is contained in:
@@ -79,8 +79,8 @@ class NotificationServices {
|
||||
Future<void> _showNotification(RemoteMessage message) async {
|
||||
try {
|
||||
// Early validation of notification data
|
||||
final title = message.data['title'] as String?;
|
||||
final body = message.data['body'] as String?;
|
||||
final title = message.notification?.title ?? "Title" as String?;
|
||||
final body = message.notification?.body ?? "Body" as String?;
|
||||
final type = message.data['type'] as String? ?? 'normal';
|
||||
|
||||
if (title == null || body == null) {
|
||||
|
||||
Reference in New Issue
Block a user