BluetoothConnection class
Represents ongoing Bluetooth connection to remote device.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
input
↔ Stream<
Uint8List> ? -
Stream sink used to read from the remote Bluetooth device
getter/setter pair
- isConnected → bool
-
Describes is stream connected.
no setter
-
output
↔ _BluetoothStreamSink<
Uint8List> -
Stream sink used to write to the remote Bluetooth device
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
) → Future< void> - Closes connection (rather immediately), in result should also disconnect.
-
close(
) → Future< void> - Closes connection (rather immediately), in result should also disconnect.
-
dispose(
) → void - Should be called to make sure the connection is closed and resources are freed (sockets/channels).
-
finish(
) → Future< void> - Closes connection (rather gracefully), in result should also disconnect.
-
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
Static Methods
-
toAddress(
String? address) → Future< BluetoothConnection> - Returns connection to given address.