BleService class

Represents a Bluetooth Low Energy (BLE) service.

In the BLE protocol, services encapsulate one or more characteristics that contain data provided by the peripheral device. Each service has a universally unique identifier (UUID) and contains a collection of BleCharacteristic instances which detail the properties and permissions of each characteristic.

Constructors

BleService({required String serviceUuid, required List<BleCharacteristic> characteristics})
Creates a BleService instance.
BleService.fromMap(Map<String, dynamic> map)
Constructs a BleService from a map.
factory

Properties

characteristics List<BleCharacteristic>
A list of BleCharacteristic objects that belong to this service.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceUuid String
The universally unique identifier (UUID) for the service.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a string representation of the BleService instance.
override

Operators

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