mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
11 lines
302 B
Dart
11 lines
302 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;
|
|
}
|