get method

  1. @override
num get(
  1. int index,
  2. int channel
)
override

Get the the value of a specific channel of the palette entry at index. If the palette has fewer colors than index or fewer channels than channel, 0 will be returned.

Implementation

@override
num get(int index, int channel) =>
    channel < numChannels ? data[index * numChannels + channel] : 0;