methodHandler method
Implementation
Future<void> methodHandler(MethodCall call) async {
switch (call.method) {
case "notixInterstitialShowResult":
switch (call.arguments) {
case 0:
_showResultListener?.call(InterstitialShowResult.onClick);
break;
case 1:
_showResultListener?.call(InterstitialShowResult.onDismiss);
break;
case 2:
_showResultListener?.call(InterstitialShowResult.onShowError);
break;
}
break;
default:
if (kDebugMode) {
print('no method handler for method ${call.method}');
}
}
}