import 'dart:io' show Platform; bool get isAndroid => Platform.isAndroid; bool get isIOS => Platform.isIOS; bool get isLinux => Platform.isLinux; bool get isMacOS => Platform.isMacOS; bool get isWindows => Platform.isWindows; bool get isDesktop => isLinux || isMacOS || isWindows;