FaketoothDescriptor class

A class that represents a Bluetooth Low Energy (BLE) descriptor in Faketooth.

This class defines the UUID, value producer, value handler, and initial value of a BLE descriptor.

Constructors

FaketoothDescriptor({required String uuid, dynamic initialValue, Future valueProducer()?, void valueHandler(dynamic)?})
Creates a new instance of FaketoothDescriptor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
initialValue → dynamic
The initial value of the descriptor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uuid String
The UUID of the descriptor.
final
valueHandler → (void Function(dynamic)?)
A function that handles the value changes of the descriptor.
final
valueProducer → (Future Function()?)
A function that produces the value of the descriptor.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArguments() Map<String, dynamic>
Converts the descriptor to a map of arguments.
toString() String
A string representation of this object.
inherited

Operators

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