methodCallHandler method
Implementation
Future<dynamic> methodCallHandler(MethodCall call) async {
switch (call.method) {
case 'onReward':
final reward = call.arguments['reward'] as double;
_onReward(reward);
return 'called onReward';
default:
throw MissingPluginException('notImplemented');
}
}