global 0.0.51 global: ^0.0.51 copied to clipboard
The package provides all the basic global features and utilities that one would require while developing a flutter project.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add global
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
global: ^0.0.51
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:global/global.dart';