willHandleForegroundNotifications method

  1. @override
Future<bool?> willHandleForegroundNotifications(
  1. Map<String, dynamic> notificationData
)
override

Implementation

@override
Future<bool?> willHandleForegroundNotifications(
    Map<String, dynamic> notificationData) async {
  try {
    return await methodChannel.invokeMethod(
        'willHandleForegroundNotifications', notificationData);
  } catch (e) {
    e.toString();
    return false;
  }
}