getAccentColor static method

Future<Color?> getAccentColor()

Returns the OS' accent color asynchronously as a Color.

Supported on macOS starting with 10.14 (Mojave), on Windows starting with Vista, and on GTK-based Linux desktops.

See also:

Implementation

static Future<Color?> getAccentColor() async {
  final result = await channel.invokeMethod(accentColorMethodName);
  return result == null ? null : Color(result);
}