os_release 0.2.0
os_release: ^0.2.0 copied to clipboard
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!");
}
}