copyWith method

  1. @override
TonConnectManifestInfo copyWith({
  1. String? url,
  2. String? name,
  3. Document? icon,
})
override

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

Implementation

@override
TonConnectManifestInfo copyWith({
  String? url,
  String? name,
  Document? icon,
}) => TonConnectManifestInfo(
  url: url ?? this.url,
  name: name ?? this.name,
  icon: icon ?? this.icon,
);