none_or 1.0.1 copy "none_or: ^1.0.1" to clipboard
none_or: ^1.0.1 copied to clipboard

Provides a new object None<T>() and a typedef for NoneOr<T>() to differentiate between implicit and explicit null values using dart's only valid Union Type.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add none_or

With Flutter:

 $ flutter pub add none_or

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

dependencies:
  none_or: ^1.0.1

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:none_or/none_or.dart';
2
likes
150
points
18
downloads

Publisher

verified publishertre.contact

Weekly Downloads

Provides a new object None<T>() and a typedef for NoneOr<T>() to differentiate between implicit and explicit null values using dart's only valid Union Type.

Repository

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on none_or