numChannels property

int numChannels

The number of color channels for the image.

Implementation

int get numChannels => palette?.numChannels ?? data?.numChannels ?? 0;