fromInt static method

BluetoothBondState fromInt(
  1. int? value
)

Creates BluetoothBondState from integer value

Implementation

static BluetoothBondState fromInt(int? value) {
  switch (value) {
    case 11:
      return BluetoothBondState.bonding;
    case 12:
      return BluetoothBondState.bonded;
    default:
      return BluetoothBondState.none;
  }
}