isDesktop property

bool get isDesktop

Checks if the device is running on desktop

Implementation

bool get isDesktop =>
    !kIsWeb && (Platform.isMacOS || Platform.isWindows || Platform.isLinux);