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