decode static method

BluetoothDevice decode(
  1. Object result
)

Implementation

static BluetoothDevice decode(Object result) {
  result as List<Object?>;
  return BluetoothDevice(
    name: result[0]! as String,
    rssi: result[1]! as int,
    uuid: result[2]! as String,
    capabilities: (result[3] as List<Object?>?)!.cast<BluetoothCapabilities>(),
    connectionState: result[4]! as ConnectionState,
    deviceType: result[5]! as DeviceType,
  );
}