better platform check
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import '../platform.dart';
|
||||
import 'dart:io';
|
||||
|
||||
PlatformType lkPlatformImplementation() {
|
||||
if (Platform.isWindows) return PlatformType.windows;
|
||||
if (Platform.isFuchsia) return PlatformType.fuchsia;
|
||||
if (Platform.isMacOS) return PlatformType.macOS;
|
||||
if (Platform.isLinux) return PlatformType.linux;
|
||||
if (Platform.isIOS) return PlatformType.iOS;
|
||||
return PlatformType.android;
|
||||
}
|
||||
Reference in New Issue
Block a user