mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-23 20:10:12 +08:00
14 lines
401 B
Dart
14 lines
401 B
Dart
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;
|
|
|
|
@pragma("vm:platform-const")
|
|
static final bool isDarwin = Platform.isIOS || Platform.isMacOS;
|
|
}
|