convert method
Convert the format
and/or the numChannels
of the color. If
numChannels
is 4 and the current color does not have an alpha value,
then alpha
can specify what value to use for the new alpha channel.
If alpha
is not given, then maxChannelValue will be used.
Implementation
@override
Color convert({Format? format, int? numChannels, num? alpha}) =>
convertColor(this,
format: format, numChannels: numChannels, alpha: alpha);