linux_plus

Last updated:

0 purchases

linux_plus Image
linux_plus Images
Add to Cart

Description:

linux plus

linux_plus #
Utility package to provide additional details about the linux platform.
Features #

Linux Specific Features

Get Current Distro Name
Get Parent Distro Name
Get Full Distro Name
Get Distro Version
Utility functions to check if

The current distro is Based on Debian or Ubuntu
The current distro is on Debian, Ubuntu, Fedora or Arch.





Usage #
import 'dart:io';
import 'package:linux_plus/linux_plus.dart';

void main() {
/// its optional to check for [Platform.isLinux] first
/// on other platforms the distro functions will simply return `unknown`/`false`
/// respectively.
if(Platform.isLinux) {
print(LinuxPlus.distro);
print(LinuxPlus.fullDistroName);
print(LinuxPlus.distroVersion);
print(LinuxPlus.distroVersionCodename);
print(LinuxPlus.distroCodename);
print(LinuxPlus.parentDistro);
print(LinuxPlus.isUbuntu);
print(LinuxPlus.isDebian);
print(LinuxPlus.isFedora);
print(LinuxPlus.isArch);
print(LinuxPlus.isUbuntuOrDebian);
print(LinuxPlus.isUbuntuBased);
print(LinuxPlus.isDebianBased);
}
}

copied to clipboard
Upcoming Features #

Support for processor info for linux

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.