Push constructor

Push(
  1. MethodChannel _channel,
  2. EventChannel _pushEventChannel,
  3. 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"])));