BluetoothBondState.fromString constructor
const
BluetoothBondState.fromString(
- String string
Implementation
const BluetoothBondState.fromString(String string)
: this.underlyingValue = (string == 'none'
? 10
: string == 'bonding'
? 11
: string == 'bonded'
? 12
: -2 // Unknown, if not found valid
),
this.stringValue =
((string == 'none' || string == 'bonding' || string == 'bonded' //
)
? string
: 'unknown' // Unknown, if not found valid
);