mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 22:09:03 +08:00
7 lines
227 B
Dart
7 lines
227 B
Dart
import 'dart:io' show Platform;
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
bool get isDesktop =>
|
|
!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS);
|
|
bool get isWindows => !kIsWeb && Platform.isWindows;
|