Last updated:
0 purchases
platform linux
Platform Linux #
Linux-specific extensions on the platform
package for detecting Linux distro and desktop environment.
Imports #
When used in conjunction with package:platform:
import 'package:platform/platform.dart';
import 'package:platform_linux/platform_linux.dart';
copied to clipboard
Alternatively, with the following syntax, an explicit dependency on
package:platform is not required:
import 'package:platform_linux/platform.dart';
copied to clipboard
Example #
import 'package:platform_linux/platform.dart';
void main() {
final platform = LocalPlatform();
if (platform.isUbuntu && platform.isGNOME) {
...
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.