handleMethodCall method
Implementation
Future<Object?> handleMethodCall(MethodCall call) async {
switch (call.method) {
case getLocalTimezoneMethod:
return _getLocalTimeZone();
case getLocalTimezoneInfoMethod:
return _getLocalTimeZoneInfo();
case getAvailableTimezonesMethod:
return _getAvailableTimeZones();
default:
throw PlatformException(
code: 'unimplemented',
message: 'my_timezone does not implement ${call.method} on web.',
);
}
}