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