ImageStreamListener constructor Null safety

const ImageStreamListener(
  1. ImageListener onImage,
  2. {ImageChunkListener? onChunk,
  3. ImageErrorListener? onError}
)

Creates a new ImageStreamListener.

The onImage parameter must not be null.

Implementation

const ImageStreamListener(
  this.onImage, {
  this.onChunk,
  this.onError,
}) : assert(onImage != null);