copyWith method

TonConnectConnectRequest copyWith({
  1. String? manifestUrl,
  2. List<TonConnectConnectItem>? items,
})

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

Implementation

TonConnectConnectRequest copyWith({
  String? manifestUrl,
  List<TonConnectConnectItem>? items,
}) => TonConnectConnectRequest(
  manifestUrl: manifestUrl ?? this.manifestUrl,
  items: items ?? this.items,
);