os_release 0.2.1 copy "os_release: ^0.2.1" to clipboard
os_release: ^0.2.1 copied to clipboard

PlatformLinux

Reads the os-release file on Linux Distributions and makes accessing the contents of the file easy.

example/os_release_example.dart

import 'dart:io';

import 'package:os_release/os_release.dart';

Future<void> main() async {
 if(Platform.isLinux){
   var osRel = await OsRelease.detect();

   print("We're running: ${osRel.name}, which is a Linux distribution. That's so cool!");
 }
}
1
likes
140
points
25
downloads

Publisher

verified publisheralastairlundy.com

Weekly Downloads

Reads the os-release file on Linux Distributions and makes accessing the contents of the file easy.

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on os_release