change method
Returns a copy of this
with the given fields changed.
Implementation
Metadata change(
{PlatformSelector? testOn,
Timeout? timeout,
bool? skip,
bool? verboseTrace,
bool? chainStackTraces,
int? retry,
String? skipReason,
Map<PlatformSelector, Metadata>? onPlatform,
Set<String>? tags,
Map<BooleanSelector, Metadata>? forTag,
String? languageVersionComment}) {
testOn ??= this.testOn;
timeout ??= this.timeout;
skip ??= _skip;
verboseTrace ??= _verboseTrace;
chainStackTraces ??= _chainStackTraces;
retry ??= _retry;
skipReason ??= this.skipReason;
onPlatform ??= this.onPlatform;
tags ??= this.tags;
forTag ??= this.forTag;
languageVersionComment ??= this.languageVersionComment;
return Metadata(
testOn: testOn,
timeout: timeout,
skip: skip,
verboseTrace: verboseTrace,
chainStackTraces: chainStackTraces,
skipReason: skipReason,
onPlatform: onPlatform,
tags: tags,
forTag: forTag,
retry: retry,
languageVersionComment: languageVersionComment);
}