dominantSwatch property
The dominant color as a PaletteSwatch, including its population.
Implementation
PaletteSwatch? get dominantSwatch => swatches.isEmpty ? null : swatches.first;
The dominant color as a PaletteSwatch, including its population.
PaletteSwatch? get dominantSwatch => swatches.isEmpty ? null : swatches.first;