determineText property
String
get
determineText
Implementation
String get determineText {
switch (this) {
case BluetoothAdapterState.unavailable:
return "This device does not support Bluetooth";
case BluetoothAdapterState.unauthorized:
return "Please authorize the app to use Bluetooth and location";
case BluetoothAdapterState.off:
return "Bluetooth is powered off on your device, please turn it on";
case BluetoothAdapterState.on:
return "Bluetooth is up and running";
default:
return "Waiting to fetch Bluetooth status $this";
}
}