phoneType property
Returns a constant indicating the device phone type. This indicates the type of radio used to transmit voice calls.
Implementation
Future<PhoneType> get phoneType async {
final int? type =
await _foregroundChannel.invokeMethod<int>(GET_PHONE_TYPE);
if (type != null) {
return PhoneType.values[type];
} else {
return PhoneType.UNKNOWN;
}
}