bytesPerPixel property Null safety

int bytesPerPixel

The number of bytes per pixel in the image.

On web, this is only supported for raw images.

Implementation

int get bytesPerPixel => _bytesPerPixel ??= _getBytesPerPixel();