dominantColor property
Color
get
dominantColor
The single most represented color in the source image.
Never null when the palette was extracted from a non-empty source.
Implementation
Color get dominantColor =>
Color(swatches.isEmpty ? 0xFF000000 : swatches.first.argb);