getEvent method

  1. @override
Future<Map<String, dynamic>?> getEvent(
  1. String subscriptionId
)
override

Implementation

@override
Future<Map<String, dynamic>?> getEvent(String subscriptionId) async {
  final res = await _methodChannel.invokeMethod<String>(
      'getEvent',
      {
        "subscriptionId": subscriptionId
      }
  );
  if (res == null) throw AssertionError("received null result from platform method getEvent");
  return jsonDecode(res);
}