toMap method

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

Implementation

@override
Map<String, dynamic> toMap() {
  return {
    // ignore: deprecated_member_use_from_same_package
    "addDefaultShareMenuItem": addDefaultShareMenuItem,
    "shareState": shareState.toNativeValue(),
    "showTitle": showTitle,
    "toolbarBackgroundColor": toolbarBackgroundColor?.toHex(),
    "enableUrlBarHiding": enableUrlBarHiding,
    "instantAppsEnabled": instantAppsEnabled,
    "packageName": packageName,
    "keepAliveEnabled": keepAliveEnabled,
    "isSingleInstance": isSingleInstance,
    "noHistory": noHistory,
    "isTrustedWebActivity": isTrustedWebActivity,
    "additionalTrustedOrigins": additionalTrustedOrigins,
    "displayMode": displayMode?.toMap(),
    "screenOrientation": screenOrientation.toNativeValue()
  };
}