copyWith method

TMeUrl copyWith({
  1. String? url,
  2. TMeUrlType? type,
})

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

Implementation

TMeUrl copyWith({String? url, TMeUrlType? type}) =>
    TMeUrl(url: url ?? this.url, type: type ?? this.type);