mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +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;
|
||
|
}
|