isDesktop top-level property

bool get isDesktop

Whether the current Platform is a desktop or not.

Implementation

bool get isDesktop =>
    Platform.isMacOS || Platform.isLinux || Platform.isWindows;