toMap method Null safety

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    "textZoom": textZoom,
    "clearSessionCache": clearSessionCache,
    "builtInZoomControls": builtInZoomControls,
    "displayZoomControls": displayZoomControls,
    "databaseEnabled": databaseEnabled,
    "domStorageEnabled": domStorageEnabled,
    "useWideViewPort": useWideViewPort,
    "safeBrowsingEnabled": safeBrowsingEnabled,
    "mixedContentMode": mixedContentMode?.toValue(),
    "allowContentAccess": allowContentAccess,
    "allowFileAccess": allowFileAccess,
    "appCachePath": appCachePath,
    "blockNetworkImage": blockNetworkImage,
    "blockNetworkLoads": blockNetworkLoads,
    "cacheMode": cacheMode?.toValue(),
    "cursiveFontFamily": cursiveFontFamily,
    "defaultFixedFontSize": defaultFixedFontSize,
    "defaultFontSize": defaultFontSize,
    "defaultTextEncodingName": defaultTextEncodingName,
    "disabledActionModeMenuItems": disabledActionModeMenuItems?.toValue(),
    "fantasyFontFamily": fantasyFontFamily,
    "fixedFontFamily": fixedFontFamily,
    "forceDark": forceDark?.toValue(),
    "geolocationEnabled": geolocationEnabled,
    "layoutAlgorithm": layoutAlgorithm?.toValue(),
    "loadWithOverviewMode": loadWithOverviewMode,
    "loadsImagesAutomatically": loadsImagesAutomatically,
    "minimumLogicalFontSize": minimumLogicalFontSize,
    "initialScale": initialScale,
    "needInitialFocus": needInitialFocus,
    "offscreenPreRaster": offscreenPreRaster,
    "sansSerifFontFamily": sansSerifFontFamily,
    "serifFontFamily": serifFontFamily,
    "standardFontFamily": standardFontFamily,
    "saveFormData": saveFormData,
    "thirdPartyCookiesEnabled": thirdPartyCookiesEnabled,
    "hardwareAcceleration": hardwareAcceleration,
    "supportMultipleWindows": supportMultipleWindows,
    "useHybridComposition": useHybridComposition,
    "regexToCancelSubFramesLoading": regexToCancelSubFramesLoading,
    "useShouldInterceptRequest": useShouldInterceptRequest,
    "useOnRenderProcessGone": useOnRenderProcessGone,
    "overScrollMode": overScrollMode?.toValue(),
    "networkAvailable": networkAvailable,
    "scrollBarStyle": scrollBarStyle?.toValue(),
    "verticalScrollbarPosition": verticalScrollbarPosition?.toValue(),
    "scrollBarDefaultDelayBeforeFade": scrollBarDefaultDelayBeforeFade,
    "scrollbarFadingEnabled": scrollbarFadingEnabled,
    "scrollBarFadeDuration": scrollBarFadeDuration,
    "rendererPriorityPolicy": rendererPriorityPolicy?.toMap(),
    "disableDefaultErrorPage": disableDefaultErrorPage,
    "verticalScrollbarThumbColor": verticalScrollbarThumbColor?.toHex(),
    "verticalScrollbarTrackColor": verticalScrollbarTrackColor?.toHex(),
    "horizontalScrollbarThumbColor": horizontalScrollbarThumbColor?.toHex(),
    "horizontalScrollbarTrackColor": horizontalScrollbarTrackColor?.toHex(),
  };
}