isDesktop property
bool
isDesktop
Checks whether desktop or not
Implementation
static bool get isDesktop =>
!isWeb &&
(defaultTargetPlatform == TargetPlatform.linux ||
defaultTargetPlatform == TargetPlatform.macOS ||
defaultTargetPlatform == TargetPlatform.windows);