toInt method

int toInt()

Converts enum value to integer

Implementation

int toInt() {
  switch (this) {
    case BluetoothBondState.bonding:
      return 11;
    case BluetoothBondState.bonded:
      return 12;
    case BluetoothBondState.none:
      return 10;
  }
}