GetStream<T> constructor Null safety

GetStream<T>(
  1. {void onListen(
      )?,
    1. void onPause(
        )?,
      1. void onResume(
          )?,
        1. FutureOr<void> onCancel(
            )?}
          )

          Implementation

          GetStream({this.onListen, this.onPause, this.onResume, this.onCancel});