mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
11 lines
259 B
Dart
11 lines
259 B
Dart
|
import 'dart:io';
|
||
|
|
||
|
class DeviceInfo {
|
||
|
DeviceInfo._();
|
||
|
|
||
|
static DeviceInfo get instance => DeviceInfo._();
|
||
|
|
||
|
bool get isMobile => Platform.isAndroid || Platform.isIOS;
|
||
|
|
||
|
bool get isDesktop => Platform.isMacOS || Platform.isWindows || Platform.isLinux;
|
||
|
}
|