toMap method
Converts instance to a map.
Implementation
Map<String, dynamic> toMap() {
return {
"allowGoBackWithBackButton": allowGoBackWithBackButton,
"closeButtonCaption": closeButtonCaption,
"closeButtonColor": closeButtonColor?.toHex(),
"closeOnCannotGoBack": closeOnCannotGoBack,
"hidden": hidden,
"hideCloseButton": hideCloseButton,
"hideDefaultMenuItems": hideDefaultMenuItems,
"hideProgressBar": hideProgressBar,
"hideTitleBar": hideTitleBar,
"hideToolbarBottom": hideToolbarBottom,
"hideToolbarTop": hideToolbarTop,
"hideUrlBar": hideUrlBar,
"menuButtonColor": menuButtonColor?.toHex(),
"presentationStyle": presentationStyle?.toNativeValue(),
"shouldCloseOnBackButtonPressed": shouldCloseOnBackButtonPressed,
"toolbarBottomBackgroundColor": toolbarBottomBackgroundColor?.toHex(),
"toolbarBottomTintColor": toolbarBottomTintColor?.toHex(),
"toolbarBottomTranslucent": toolbarBottomTranslucent,
"toolbarTopBackgroundColor": toolbarTopBackgroundColor?.toHex(),
"toolbarTopBarTintColor": toolbarTopBarTintColor?.toHex(),
"toolbarTopFixedTitle": toolbarTopFixedTitle,
"toolbarTopTintColor": toolbarTopTintColor?.toHex(),
"toolbarTopTranslucent": toolbarTopTranslucent,
"transitionStyle": transitionStyle?.toNativeValue(),
"windowAlphaValue": windowAlphaValue,
"windowFrame": windowFrame?.toMap(),
"windowStyleMask": windowStyleMask?.toNativeValue(),
"windowTitlebarSeparatorStyle":
windowTitlebarSeparatorStyle?.toNativeValue(),
"windowType": windowType?.toNativeValue(),
};
}