BleFieldDefinition<T> class

Share this definition with the client; initial values and hooks stay on server.

Constructors

BleFieldDefinition({required String serviceUuid, required String uuid, required BleCodec<T> codec, required Set<BleProperty> access})
Creates an immutable definition with normalized Bluetooth UUIDs.

Properties

access → Set<BleProperty>
Immutable set of required field operations.
final
codec → BleCodec<T>
Converts values to and from the peer's agreed wire format.
final
hashCode → int
The hash code for this object.
no setterinherited
key → String
Canonical service/characteristic key used by client transports.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceUuid → String
UUID of the service containing this characteristic.
final
uuid → String
Characteristic UUID in canonical 128-bit form.
final

Methods

bind({required T initialValue, bool validate(T)?, FutureOr<T> readValue(BleRequestContext)?, FutureOr<bool> authorizeWrite(BleRequestContext, T)?, BleSecurity security = BleSecurity.open}) → BleField<T>
Creates server storage and hooks from this shared definition.
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