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