supportsAccentColor property
bool
supportsAccentColor
A helper that can be used to check if the current platform supports accent colors.
Implementation
bool get supportsAccentColor =>
kIsWeb ||
[
TargetPlatform.windows,
TargetPlatform.macOS,
TargetPlatform.android,
TargetPlatform.linux,
].contains(this);