getMediaSupportLevel static method

MediaSupportLevel getMediaSupportLevel(
  1. Media1? media1,
  2. Media2? media2
)

Implementation

static MediaSupportLevel getMediaSupportLevel(
    Media1? media1, Media2? media2) {
  if (media1 != null && media2 != null) return MediaSupportLevel.both;

  if (media1 == null && media2 != null) return MediaSupportLevel.two;

  if (media1 != null && media2 == null) return MediaSupportLevel.one;

  return MediaSupportLevel.none;
}