invariant_future 1.0.3 copy "invariant_future: ^1.0.3" to clipboard
invariant_future: ^1.0.3 copied to clipboard

An extension type `IFuture` adjusting the typing of `Future`. The type parameter is invariant, and some member signatures have more strict static typing than `Future`.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add invariant_future

With Flutter:

 $ flutter pub add invariant_future

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  invariant_future: ^1.0.3

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

Import it

Now in your Dart code, you can use:

import 'package:invariant_future/invariant_future_member.dart';
import 'package:invariant_future/invariant_future_union.dart';
2
likes
160
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

An extension type `IFuture` adjusting the typing of `Future`. The type parameter is invariant, and some member signatures have more strict static typing than `Future`.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

extension_type_unions

More

Packages that depend on invariant_future