Beacon class

Class for managing Beacon object.

Constructors

Beacon({String proximityUUID, String macAddress, int major, int minor, int rssi, int txPower, 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. [...]
read-only
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. [...]
read-only
proximityUUID → String
The proximity UUID of beacon.
final
rssi → int
The rssi value of beacon.
final
toJson → dynamic
Serialize current instance object into Map.
read-only
txPower → int
The transmission power of beacon. [...]
final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

toString() → String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]

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.