eventGetDetail method Null safety

Future<Map<String, dynamic>> eventGetDetail(
  1. String eventName
)

Returns a Map object for the particular event passed. EventDetail consists of event name, count, first time

Implementation

//  and last time timestamp of the event.
static Future<Map<String, dynamic>> eventGetDetail(String eventName) async {
  Map<dynamic, dynamic> response =
      await _channel.invokeMethod('eventGetDetail', {'eventName': eventName});
  return response.cast<String, dynamic>();
}