copyWith method

WebBrowserSettings copyWith({
  1. bool? openExternalBrowser,
  2. List<WebDomainException>? externalExceptions,
  3. List<WebDomainException>? inAppExceptions,
  4. bool? displayCloseButton,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

WebBrowserSettings copyWith({
  bool? openExternalBrowser,
  List<WebDomainException>? externalExceptions,
  List<WebDomainException>? inAppExceptions,
  bool? displayCloseButton,
}) => WebBrowserSettings(
  openExternalBrowser: openExternalBrowser ?? this.openExternalBrowser,
  externalExceptions: externalExceptions ?? this.externalExceptions,
  inAppExceptions: inAppExceptions ?? this.inAppExceptions,
  displayCloseButton: displayCloseButton ?? this.displayCloseButton,
);