maxChannelValue property

num maxChannelValue

The maximum value of a pixel channel, based on the format of the image. If the image has a palette, this will be the maximum value of a palette color channel. Float format images will have a maxChannelValue of 1.0, though they can have values above that.

Implementation

num get maxChannelValue => data?.maxChannelValue ?? 0;