copyWith method

XUri copyWith(
  1. {Uri? uri,
  2. String? name}
)

Creates a deep copy

Implementation

XUri copyWith({Uri? uri, String? name}) {
  return XUri(uri: uri ?? this.uri, name: name ?? this.name);
}