mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 20:19:25 +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;
|
||
|
}
|