extensions 0.3.8 extensions: ^0.3.8 copied to clipboard
A set of APIs for commonly used programming patterns and utilities, such as dependency injection, logging, and configuration.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add extensions
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
extensions: ^0.3.8
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:extensions/configuration.dart';
import 'package:extensions/configuration_io.dart';
import 'package:extensions/dependency_injection.dart';
import 'package:extensions/hosting.dart';
import 'package:extensions/hosting_io.dart';
import 'package:extensions/io.dart';
import 'package:extensions/logging.dart';
import 'package:extensions/options.dart';
import 'package:extensions/primitives.dart';