fromType static method

NEAudioOutputDevice fromType(
  1. int type
)

Implementation

static NEAudioOutputDevice fromType(int type) {
  return NEAudioOutputDevice.values.firstWhere(
    (element) => element.index == type,
    orElse: () => NEAudioOutputDevice.kEarpiece,
  );
}