copyWith method

Media copyWith({
  1. String? uri,
  2. Map<String, dynamic>? extras,
  3. Map<String, String>? httpHeaders,
  4. Duration? start,
  5. Duration? end,
})

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,
  );
}