setPlotlineEventsListener static method

Future<void> setPlotlineEventsListener(
  1. dynamic callbackFunc(
    1. String eventName,
    2. Map<String, dynamic> properties
    )
)

Implementation

static Future<void> setPlotlineEventsListener(Function(String eventName, Map<String, dynamic> properties) callbackFunc) async {
  try {
    plotlineChannel.invokeMethod('setPlotlineEventsListener');
    _callback = callbackFunc;
  } catch (e) {
    debugPrint("Error in setPlotlineEventsListener: $e");
  }
}