getCorePalette static method
Returns the Android OS' dynamic colors asynchronously in a CorePalette
.
Completes with null on pre-Android S and non-Android platforms.
See also:
- getCorePalette() example
- DynamicColorBuilder a convenience stateful builder widget that provides the dynamic colors
Implementation
static Future<CorePalette?> getCorePalette() async {
final result = await channel.invokeMethod(methodName);
return result == null ? null : CorePalette.fromList(result.toList());
}