copyWith method
Creates a copy of this
instance with the given fields replaced with the new values.
Implementation
Media copyWith({
String? uri,
Map<String, dynamic>? extras,
Map<String, String>? httpHeaders,
Duration? start,
Duration? end,
}) {
return Media(
uri ?? this.uri,
extras: extras ?? this.extras,
httpHeaders: httpHeaders ?? this.httpHeaders,
start: start ?? this.start,
end: end ?? this.end,
);
}