getValueFromHMSTrackSource method Null safety

String getValueFromHMSTrackSource(
  1. HMSTrackSource hmsTrackKind
)

Implementation

static String getValueFromHMSTrackSource(HMSTrackSource hmsTrackKind) {
  switch (hmsTrackKind) {
    case HMSTrackSource.kHMSTrackSourceRegular:
      return 'kHMSTrackSourceRegular';
    case HMSTrackSource.kHMSTrackSourceScreen:
      return 'kHMSTrackSourceScreen';
    case HMSTrackSource.kHMSTrackSourcePlugin:
      return 'kHMSTrackSourcePlugin';
    case HMSTrackSource.unknown:
      return '';
  }
}