toMap method
Converts instance to a map.
Implementation
Map<String, dynamic> toMap() {
return {
"activityButton": activityButton?.toMap(),
"additionalTrustedOrigins": additionalTrustedOrigins,
"alwaysUseBrowserUI": alwaysUseBrowserUI,
"barCollapsingEnabled": barCollapsingEnabled,
"dismissButtonStyle": dismissButtonStyle?.toNativeValue(),
"displayMode": displayMode?.toMap(),
"enableUrlBarHiding": enableUrlBarHiding,
"entersReaderIfAvailable": entersReaderIfAvailable,
"eventAttribution": eventAttribution?.toMap(),
"exitAnimations": exitAnimations?.map((e) => e.toMap()).toList(),
"instantAppsEnabled": instantAppsEnabled,
"isSingleInstance": isSingleInstance,
"isTrustedWebActivity": isTrustedWebActivity,
"keepAliveEnabled": keepAliveEnabled,
"navigationBarColor": navigationBarColor?.toHex(),
"navigationBarDividerColor": navigationBarDividerColor?.toHex(),
"noHistory": noHistory,
"packageName": packageName,
"preferredBarTintColor": preferredBarTintColor?.toHex(),
"preferredControlTintColor": preferredControlTintColor?.toHex(),
"presentationStyle": presentationStyle?.toNativeValue(),
"screenOrientation": screenOrientation?.toNativeValue(),
"secondaryToolbarColor": secondaryToolbarColor?.toHex(),
"shareState": shareState?.toNativeValue(),
"showTitle": showTitle,
"startAnimations": startAnimations?.map((e) => e.toMap()).toList(),
"toolbarBackgroundColor": toolbarBackgroundColor?.toHex(),
"transitionStyle": transitionStyle?.toNativeValue(),
};
}