MediaFile.medium constructor

MediaFile.medium(
  1. Medium medium
)

Implementation

MediaFile.medium(Medium medium) {
  _medium = medium;
  _type = _medium!.mediumType == MediumType.video
      ? MediaType.video
      : MediaType.image;
  _id = _medium!.id;
}