toSafariViewControllerOptions method

  1. @internal
SafariViewControllerOptions toSafariViewControllerOptions()

Implementation

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