copyWith method
WebAppOpenParameters
copyWith({
- ThemeParameters? theme()?,
- String? applicationName,
- WebAppOpenMode? mode()?,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
WebAppOpenParameters copyWith({
ThemeParameters? Function()? theme,
String? applicationName,
WebAppOpenMode? Function()? mode,
}) => WebAppOpenParameters(
theme: theme != null ? theme() : this.theme,
applicationName: applicationName ?? this.applicationName,
mode: mode != null ? mode() : this.mode,
);