byteLength property

int get byteLength

The pixel payload size in bytes (width * height * 4).

Implementation

int get byteLength => width * height * 4;