Beacon class
Class for managing Beacon object.
Constructors
- Beacon({String proximityUUID, String macAddress, int major, int minor, int rssi, int txPower, double accuracy })
-
const
- Beacon.fromJson(dynamic json)
- Create beacon object from json.
Properties
- accuracy → double
-
The accuracy of distance of beacon in meter.
final
- 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
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
beaconArrayToJson(
List< Beacon> beacons) → dynamic -
Parsing
List
of Beacon into array ofMap
. -
beaconFromArray(
dynamic beacons) → List< Beacon> -
Parsing array of
Map
intoList
of Beacon.