isDesktop property
bool
get
isDesktop
Check if current platform is desktop
Implementation
static bool get isDesktop =>
!kIsWeb &&
(defaultTargetPlatform == TargetPlatform.windows ||
defaultTargetPlatform == TargetPlatform.macOS ||
defaultTargetPlatform == TargetPlatform.linux);