GeoChannel class

Constructors

GeoChannel(String channel, {required String metadata})

Properties

channel String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
metadata String
getter/setter pair
phoenixChannel ↔ PhoenixChannel?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId String?
getter/setter pair

Methods

connect(Supervisor supervisor) Future<PhoenixChannel>
getNearbyEntities(double latitude, double longitude, double range) Future<List<Locality>>
Get all nearby entities in the range around the point that consists of latitude and longitude on a world map.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putGeoEntity(String name, Map<String, dynamic> payload, {required double latitude, required double longitude, double lifetimeSeconds = 30}) → void
Put a geo-entity on this geo-channel with a payload. You can query geo-entities and receive their payload with getNearbyEntities. You can specify a custom lifetime. The standard lifetime for geo-entities is 30 seconds, that means, after 30 seconds, they will disappear.
toString() String
A string representation of this object.
inherited

Operators

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