useDark property

bool get useDark

Implementation

bool get useDark =>
    //forced to use DARK by user
    themeMode == ThemeMode.dark ||
    //The setting indicating the current brightness mode of the host platform. If the platform has no preference, platformBrightness defaults to Brightness.light.
    (themeMode == ThemeMode.system &&
        WidgetsBinding.instance.platformDispatcher.platformBrightness ==
            Brightness.dark);