Geofence constructor

Geofence(
  1. MethodChannel _channel,
  2. EventChannel _geofenceEventChannel
)

Implementation

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