getImagePalette static method
Implementation
static Future<Color> getImagePalette(ImageProvider imageProvider) async {
final PaletteGenerator paletteGenerator = await PaletteGenerator.fromImageProvider(imageProvider);
return paletteGenerator.dominantColor!.color;
}