BluetoothConnectionStateLocal class

Represents the state of the Bluetooth connection for local Doppler devices.

BluetoothConnectionStateLocal holds all relevant data for managing and displaying Bluetooth connection status, including the list of paired devices, the currently connected device, received data, scanning/connecting flags, and error messages. This state is used by BluetoothConnectionBloc to emit updates to the UI.

Use copyWith to create updated copies of the state with modified fields.

Example usage:

final newState = state.copyWith(isScanning: true);
Inheritance

Constructors

BluetoothConnectionStateLocal({List<BluetoothDevice> pairedDevices = const [], BluetoothDevice? connectedDevice, List<BluetoothData> receivedData = const [], bool isScanning = false, bool isConnecting = false, String? error})
const

Properties

connectedDevice BluetoothDevice?
final
error String?
final
hashCode int
The hash code for this object.
no setterinherited
isConnecting bool
final
isScanning bool
final
pairedDevices List<BluetoothDevice>
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
receivedData List<BluetoothData>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({List<BluetoothDevice>? pairedDevices, BluetoothDevice? connectedDevice, List<BluetoothData>? receivedData, bool? isScanning, bool? isConnecting, String? error}) BluetoothConnectionStateLocal
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited