platform_linux

Last updated:

0 purchases

platform_linux Image
platform_linux Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.