toSafariViewControllerOptions method
Converts to SafariViewControllerOptions.
Implementation
@internal
SafariViewControllerOptions toSafariViewControllerOptions() {
bool? barCollapsingEnabled;
if (barFixingEnabled != null) {
barCollapsingEnabled = !(barFixingEnabled!);
}
return SafariViewControllerOptions(
preferredBarTintColor: barColor,
preferredControlTintColor: onBarColor,
barCollapsingEnabled: barCollapsingEnabled,
dismissButtonStyle: SafariViewControllerDismissButtonStyle.done,
);
}