convert abstract method

Color convert({
  1. Format? format,
  2. int? numChannels,
  3. num? alpha,
})

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

Color convert({Format? format, int? numChannels, num? alpha});