ImageChunkEvent constructor

const ImageChunkEvent(
  1. {required int cumulativeBytesLoaded,
  2. required int? expectedTotalBytes}
)

Creates a new chunk event.

Implementation

const ImageChunkEvent({
  required this.cumulativeBytesLoaded,
  required this.expectedTotalBytes,
}) : assert(cumulativeBytesLoaded >= 0),
     assert(expectedTotalBytes == null || expectedTotalBytes >= 0);