Last updated:
0 purchases
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.