BluetoothStreamSink class

Helper class for sending data.

Implemented types

Constructors

BluetoothStreamSink(int _id)

Properties

allSent Future
Returns a future which is completed when the sink sent all added data, instead of only if the sink got closed.
no setter
hashCode int
The hash code for this object.
no setterinherited
isConnected bool
Specifies whether the connection is still open.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Uint8List data) → void
Adds raw bytes to the output sink.
override
addError(Object error, [StackTrace? stackTrace]) → void
Unsupported - this output sink cannot pass errors to platform code.
override
addStream(Stream<Uint8List> stream) Future
Consumes the elements of stream.
override
close() Future
Closes the sink.
override
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