sealed_unions 3.0.3+1 copy "sealed_unions: ^3.0.3+1" to clipboard
sealed_unions: ^3.0.3+1 copied to clipboard

Sealed Unions for Dart

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add sealed_unions

With Flutter:

 $ flutter pub add sealed_unions

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

dependencies:
  sealed_unions: ^3.0.3+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:sealed_unions/sealed_unions.dart';