Geofence constructor
Geofence(
- MethodChannel _channel,
- GeofenceMapper _mapper,
- EventChannel _geofenceEventChannel
Implementation
Geofence(this._channel, this._mapper, EventChannel _geofenceEventChannel)
: geofenceEventStream = _geofenceEventChannel
.receiveBroadcastStream()
.map((event) => Event(
name: event["name"],
payload: Map<String, dynamic>.from(event["payload"])));