Geofence constructor

Geofence(
  1. MethodChannel _channel,
  2. GeofenceMapper _mapper,
  3. 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"])));