Line data Source code
1 : import 'dart:io'; 2 : 3 : import 'package:stream_feed_dart/src/core/platform_detector/platform_detector.dart'; 4 : 5 : /// Version running on native systems 6 1 : PlatformType get currentPlatform { 7 1 : if (Platform.isWindows) return PlatformType.windows; 8 1 : if (Platform.isFuchsia) return PlatformType.fuchsia; 9 1 : if (Platform.isMacOS) return PlatformType.macOS; 10 0 : if (Platform.isLinux) return PlatformType.linux; 11 0 : if (Platform.isIOS) return PlatformType.ios; 12 : return PlatformType.android; 13 : }