Beacon class

Class for managing Beacon object.

Constructors

Beacon({required String proximityUUID, String? macAddress, required int major, required int minor, int? rssi, int? txPower, required double accuracy, Proximity? proximity})
Create beacon object.
const
Beacon.fromJson(dynamic json)
Create beacon object from json.

Properties

accuracy double
The accuracy of distance of beacon in meter.
final
hashCode int
The hash code for this object.
no setteroverride
macAddress String?
The mac address of beacon.
final
major int
The major value of beacon.
final
minor int
The minor value of beacon.
final
proximity Proximity
Return Proximity of beacon.
no setter
proximityUUID String
The proximity UUID of beacon.
final
rssi int
The rssi value of beacon.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toJson → dynamic
Serialize current instance object into Map.
no setter
txPower int?
The transmission power of beacon.
final

Methods

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.
override

Static Methods

beaconArrayToJson(List<Beacon> beacons) → dynamic
Parsing List of Beacon into array of Map.
beaconFromArray(dynamic beacons) List<Beacon>
Parsing array of Map into List of Beacon.