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