Line data Source code
1 : // ignore_for_file: public_member_api_docs 2 : 3 : import 'dart:io' as io; 4 : 5 : import 'platform.dart'; 6 : 7 2 : PlatformType get currentPlatform { 8 2 : if (io.Platform.isWindows) return PlatformType.windows; 9 0 : if (io.Platform.isFuchsia) return PlatformType.fuchsia; 10 0 : if (io.Platform.isMacOS) return PlatformType.macOS; 11 0 : if (io.Platform.isLinux) return PlatformType.linux; 12 0 : if (io.Platform.isIOS) return PlatformType.iOS; 13 : return PlatformType.android; 14 : }