BleCapabilities class

Snapshot of peripheral support, consent and Bluetooth power state.

Constructors

BleCapabilities({required bool peripheral, required bool poweredOn, required bool authorized, required String platform, String? reason, BleNameSupport nameSupport = BleNameSupport.unavailable, bool connectionEvents = false})
const
BleCapabilities.fromMap(Map<Object?, Object?> map)
factory

Properties

authorized → bool
final
connectionEvents → bool
final
hashCode → int
The hash code for this object.
no setterinherited
nameSupport → BleNameSupport
final
peripheral → bool
final
platform → String
final
poweredOn → bool
final
ready → bool
Whether a server can currently attempt startup.
no setter
reason → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requireCompatible() → void
Throws a descriptive error when the peripheral is unavailable.
toString() → String
A string representation of this object.
inherited

Operators

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