handleMethodCall method
Implementation
Future<dynamic> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'getLocalTimezone':
return _getLocalTimeZone();
case 'getAvailableTimezones':
return _getAvailableTimezones();
default:
throw PlatformException(
code: 'Unimplemented',
details:
"The flutter_native_timezone plugin for web doesn't implement "
"the method '${call.method}'");
}
}