launchNotification static method

Future<Map<String, dynamic>?> launchNotification()

The notification that launched the app, if present, otherwise null.

Implementation

static Future<Map<String, dynamic>?> launchNotification() async {
  dynamic result = await _channel.invokeMethod('launchNotification');
  if (result == null) {
    return result;
  } else if (result is Map<String, dynamic>) {
    return result;
  } else if (result is Map) {
    return Map<String, dynamic>.from(result);
  } else if (result is String) {
    return json.decode(result);
  }
  return null;
}