GATTCharacteristic.immutable constructor
GATTCharacteristic.immutable({
- required UUID uuid,
- required Uint8List value,
- required List<
GATTDescriptor> descriptors,
Creates a immutable characteristic with a specified value.
uuid A 128-bit UUID that identifies the characteristic.
value The characteristic value to cache. You must provide a non-nil value.
Once published, you can’t update the value dynamically.
Implementation
factory GATTCharacteristic.immutable({
required UUID uuid,
required Uint8List value,
required List<GATTDescriptor> descriptors,
}) => ImmutableGATTCharacteristic(
uuid: uuid,
value: value,
descriptors: descriptors,
);