Line data Source code
1 : import 'dart:io'; 2 : 3 : class GeneralPlatform { 4 1 : static bool get isWeb => false; 5 2 : static bool get isMacOS => Platform.isMacOS; 6 2 : static bool get isWindows => Platform.isWindows; 7 2 : static bool get isLinux => Platform.isLinux; 8 2 : static bool get isAndroid => Platform.isAndroid; 9 18 : static bool get isIOS => Platform.isIOS; 10 2 : static bool get isFuchsia => Platform.isFuchsia; 11 : }