maxIndexValue property
num
get
maxIndexValue
The maximum value of a palette index, based on the format of the image. This differs from maxChannelValue in that it will not be affected by the format of the palette.
Implementation
num get maxIndexValue => data?.maxIndexValue ?? 0;