copyWithFormat method

Variant copyWithFormat(
  1. Format format
)

Returns a copy of this instance with the given {@link Format}.

Implementation

Variant copyWithFormat(Format format) => Variant(
      url: url,
      format: format,
      videoGroupId: videoGroupId,
      audioGroupId: audioGroupId,
      subtitleGroupId: subtitleGroupId,
      captionGroupId: captionGroupId,
    );