getEventHistory method Null safety

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

Returns a Map of event names and corresponding event details of all the events raised

Implementation

static Future<Map<String, dynamic>> getEventHistory(String eventName) async {
  Map<dynamic, dynamic> response = await _channel
      .invokeMethod('getEventHistory', {'eventName': eventName});
  return response.cast<String, dynamic>();
}