getChannelNormalized method

  1. @override
num getChannelNormalized(
  1. Channel channel
)
override

Get the normalized [0, 1] value of a channel from the color. If the channel isn't available, 0 will be returned.

Implementation

@override
num getChannelNormalized(Channel channel) =>
    getChannel(channel) / maxChannelValue;