copyWith method

GetWebAppUrl copyWith({
  1. int? botUserId,
  2. String? url,
  3. WebAppOpenParameters? parameters,
})

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,
  WebAppOpenParameters? parameters,
}) => GetWebAppUrl(
  botUserId: botUserId ?? this.botUserId,
  url: url ?? this.url,
  parameters: parameters ?? this.parameters,
);