BeaconDevice class

A beacon found by ranging, as listed in BeaconData.

Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

BeaconDevice({required int rssi, required String uuid, int? major, int? minor, double? accuracy, Proximity? proximity})
BeaconDevice.fromJson(Map<String, dynamic> json)
factory
BeaconDevice.fromRegionAndBeacon(Beacon beacon)
Creates a BeaconDevice from a ranged Beacon.

Properties

accuracy ↔ double?
The estimated distance to the beacon, in meters.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
major ↔ int?
Major value (for iBeacon).
getter/setter pair
minor ↔ int?
Minor value (for iBeacon).
getter/setter pair
proximity → Proximity?
The proximity zone of the beacon (e.g., immediate, near, far).
final
rssi ↔ int
The RSSI signal strength to the device, in dBm.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uuid ↔ String
The proximity UUID of the beacon.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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