system 0.1.0

  • Readme
  • Changelog
  • Example
  • Installing
  • new54

Launch system operating system commands. Supported on Linux and macOS.

This is a wrapper around system.3:

Example uses #

For a runable example, see example/main.dart.

Possible uses include:

  • System.invoke('open <Url>');: Open <Url> in the system default web browser.

Notes #

For calling regular shell commands, it's recommended to use dart:io's method. This allows you to get the standard output and supply standard input.

0.1.0 #

  • Initial release


import 'package:system/system.dart';

// Use the system `open` command to lauch the system default web browser on the
// Url
main() async {
  bool result = System.invoke('open');
  if (result) {
    print('Succesfully launched');
  } else {
    print('Failed launching');

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  system: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:system/system.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 16, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: Flutter, other

Primary library: package:system/system.dart with components: io.

Maintenance issues and suggestions

Homepage URL isn't helpful. (-10 points)

Update the homepage field from pubspec.yaml: link to a website about the package or use the source repository URL.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
ffi ^0.1.1 0.1.2 0.1.3-dev.3
Dev dependencies
pedantic ^1.7.0
test ^1.5.0