open 1.4.0 copy "open: ^1.4.0" to clipboard
open: ^1.4.0 copied to clipboard

discontinued

Open whatever you want, such as URLs, files or executables, regardless of the platform you use.

example/main.dart

import 'package:open/open.dart';

/// Demonstrates the usage of the `open()` function.
Future<void> main() async {
  // Open a URL in the default browser.
  await open('https://belin.io');

  // Open a URL in the given browser.
  await open('https://belin.io', application: 'firefox');

  // Open a URL in the given browser, using the specified arguments.
  await open('https://belin.io',
    application: 'chrome',
    arguments: ['--incognito']
  );

  // Open an image in the default viewer
  // and wait for the opened application to quit.
  await open('funny.gif', wait: true);
}
7
likes
20
pub points
33%
popularity

Publisher

verified publisherbelin.io

Open whatever you want, such as URLs, files or executables, regardless of the platform you use.

Homepage
Repository
View/report issues

License

unknown (LICENSE)

Dependencies

build_cli_annotations

More

Packages that depend on open