mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
10
lib/utils/platform_utils.dart
Normal file
10
lib/utils/platform_utils.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
abstract final class PlatformUtils {
|
||||
@pragma("vm:platform-const")
|
||||
static final bool isMobile = Platform.isAndroid || Platform.isIOS;
|
||||
|
||||
@pragma("vm:platform-const")
|
||||
static final bool isDesktop =
|
||||
Platform.isWindows || Platform.isMacOS || Platform.isLinux;
|
||||
}
|
||||
Reference in New Issue
Block a user