handleMethodCall method

Future handleMethodCall(
  1. MethodCall call
)

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}'");
  }
}