getMediaSupportLevel static method
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;
}