handleMethod static method

Future<void> handleMethod(
  1. MethodCall call,
  2. ChartboostListener listener
)

Implementation

static Future<void> handleMethod(
    MethodCall call, ChartboostListener listener) async {
  try {
    listener(listeners[call.method]!);
  } catch (e) {
    print(e.toString());
  }
}