maxChannelValue property

  1. @override
num maxChannelValue
override

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

@override
num get maxChannelValue => palette?.maxChannelValue ?? 1;