isDesktop top-level property

bool isDesktop

return true if running on Desktop

Implementation

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