handleMethodCall method
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'getVersion':
return getVersion();
case 'registerPush':
return registerPush (call.arguments["webConfig"]);
case 'unregisterPush':
return unregisterPush();
default:
throw PlatformException(
code: 'Unimplemented',
details: 'zpns for web doesn\'t implement \'${call.method}\'',
);
}
}