useMaterial property

bool useMaterial

Indicates if the App is running the Material interface theme.

Implementation

static bool get useMaterial =>
    (_appState != null && _appState!.useMaterial!) ||
    (UniversalPlatform.isAndroid &&
        (_appState == null || !_appState!.switchUI!)) ||
    (UniversalPlatform.isIOS && (_appState == null || _appState!.switchUI!));