flutterMethod method
Implementation
Future<dynamic> flutterMethod(MethodCall methodCall) async {
switch (methodCall.method) {
case 'onNotificationClick':
notifyClickListener(methodCall.arguments);
break;
case 'onNotificationReceive':
notifyReceiveListener(methodCall.arguments);
break;
case 'onRegId':
_notifyRegIdListener(methodCall.arguments);
break;
case 'onError':
_notifyErrorListener(methodCall.arguments);
break;
default:
break;
}
}