Push constructor
Push(
- MethodChannel _channel,
- EventChannel _pushEventChannel,
- EventChannel _silentPushEventChannel
Implementation
Push(this._channel, EventChannel _pushEventChannel,
EventChannel _silentPushEventChannel)
: pushEventStream = _pushEventChannel.receiveBroadcastStream().map(
(event) => Event(
name: event["name"],
payload: Map<String, dynamic>.from(event["payload"]))),
silentPushEventStream = _silentPushEventChannel
.receiveBroadcastStream()
.map((event) => Event(
name: event["name"],
payload: Map<String, dynamic>.from(event["payload"])));