fromMap static method

AndroidInAppWebViewOptions fromMap(
  1. Map<String, dynamic> map
)
override

Implementation

static AndroidInAppWebViewOptions fromMap(Map<String, dynamic> map) {
  var instance = AndroidInAppWebViewOptions();
  instance.textZoom = map["textZoom"];
  instance.clearSessionCache = map["clearSessionCache"];
  instance.builtInZoomControls = map["builtInZoomControls"];
  instance.displayZoomControls = map["displayZoomControls"];
  instance.databaseEnabled = map["databaseEnabled"];
  instance.domStorageEnabled = map["domStorageEnabled"];
  instance.useWideViewPort = map["useWideViewPort"];
  instance.safeBrowsingEnabled = map["safeBrowsingEnabled"];
  instance.mixedContentMode =
      AndroidMixedContentMode.fromNativeValue(map["mixedContentMode"]);
  instance.allowContentAccess = map["allowContentAccess"];
  instance.allowFileAccess = map["allowFileAccess"];
  instance.appCachePath = map["appCachePath"];
  instance.blockNetworkImage = map["blockNetworkImage"];
  instance.blockNetworkLoads = map["blockNetworkLoads"];
  instance.cacheMode = AndroidCacheMode.fromNativeValue(map["cacheMode"]);
  instance.cursiveFontFamily = map["cursiveFontFamily"];
  instance.defaultFixedFontSize = map["defaultFixedFontSize"];
  instance.defaultFontSize = map["defaultFontSize"];
  instance.defaultTextEncodingName = map["defaultTextEncodingName"];
  instance.disabledActionModeMenuItems =
      AndroidActionModeMenuItem.fromNativeValue(
          map["disabledActionModeMenuItems"]);
  instance.fantasyFontFamily = map["fantasyFontFamily"];
  instance.fixedFontFamily = map["fixedFontFamily"];
  instance.forceDark = AndroidForceDark.fromNativeValue(map["forceDark"]);
  instance.geolocationEnabled = map["geolocationEnabled"];
  instance.layoutAlgorithm =
      AndroidLayoutAlgorithm.fromNativeValue(map["layoutAlgorithm"]);
  instance.loadWithOverviewMode = map["loadWithOverviewMode"];
  instance.loadsImagesAutomatically = map["loadsImagesAutomatically"];
  instance.minimumLogicalFontSize = map["minimumLogicalFontSize"];
  instance.initialScale = map["initialScale"];
  instance.needInitialFocus = map["needInitialFocus"];
  instance.offscreenPreRaster = map["offscreenPreRaster"];
  instance.sansSerifFontFamily = map["sansSerifFontFamily"];
  instance.serifFontFamily = map["serifFontFamily"];
  instance.standardFontFamily = map["standardFontFamily"];
  instance.saveFormData = map["saveFormData"];
  instance.thirdPartyCookiesEnabled = map["thirdPartyCookiesEnabled"];
  instance.hardwareAcceleration = map["hardwareAcceleration"];
  instance.supportMultipleWindows = map["supportMultipleWindows"];
  instance.regexToCancelSubFramesLoading =
      map["regexToCancelSubFramesLoading"];
  instance.useHybridComposition = map["useHybridComposition"];
  instance.useShouldInterceptRequest = map["useShouldInterceptRequest"];
  instance.useOnRenderProcessGone = map["useOnRenderProcessGone"];
  instance.overScrollMode =
      AndroidOverScrollMode.fromNativeValue(map["overScrollMode"]);
  instance.networkAvailable = map["networkAvailable"];
  instance.scrollBarStyle =
      AndroidScrollBarStyle.fromNativeValue(map["scrollBarStyle"]);
  instance.verticalScrollbarPosition =
      AndroidVerticalScrollbarPosition.fromNativeValue(
          map["verticalScrollbarPosition"]);
  instance.scrollBarDefaultDelayBeforeFade =
      map["scrollBarDefaultDelayBeforeFade"];
  instance.scrollbarFadingEnabled = map["scrollbarFadingEnabled"];
  instance.scrollBarFadeDuration = map["scrollBarFadeDuration"];
  instance.rendererPriorityPolicy = RendererPriorityPolicy.fromMap(
      map["rendererPriorityPolicy"]?.cast<String, dynamic>());
  instance.disableDefaultErrorPage = map["disableDefaultErrorPage"];
  instance.verticalScrollbarThumbColor =
      UtilColor.fromHex(map["verticalScrollbarThumbColor"]);
  instance.verticalScrollbarTrackColor =
      UtilColor.fromHex(map["verticalScrollbarTrackColor"]);
  instance.horizontalScrollbarThumbColor =
      UtilColor.fromHex(map["horizontalScrollbarThumbColor"]);
  instance.horizontalScrollbarTrackColor =
      UtilColor.fromHex(map["horizontalScrollbarTrackColor"]);
  return instance;
}