AdvertisementData class

Constructors

AdvertisementData({required String advName, required int? txPowerLevel, required int? appearance, required bool connectable, required Map<int, List<int>> manufacturerData, required Map<Uuid, List<int>> serviceData, required List<Uuid> serviceUuids})
AdvertisementData.fromProto(BmScanAdvertisement p)

Properties

advName String
final
appearance int?
final
connectable bool
final
hashCode int
The hash code for this object.
no setterinherited
manufacturerData Map<int, List<int>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceData Map<Uuid, List<int>>
final
serviceUuids List<Uuid>
final
txPowerLevel int?
final

Methods

mergedWith(AdvertisementData newer) AdvertisementData
Returns this data updated with newer, carrying forward any field that newer does not carry (its advertising and scan-response PDUs each carry only part of the picture). For each field, newer's value wins when it is present — a non-empty string/list/map, or a non-null number — otherwise the prior value is kept. connectable is a per-packet header flag with no "absent" state, so newer's value is always taken.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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