Skip to main content

union_type_lint 1.0.2 copy "union_type_lint: ^1.0.2" to clipboard
union_type_lint: ^1.0.2 copied to clipboard

A Dart analyzer plugin that validates UnionType annotations.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add union_type_lint

With Flutter:

 $ flutter pub add union_type_lint

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

dependencies:
  union_type_lint: ^1.0.2

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:union_type_lint/main.dart';
import 'package:union_type_lint/union_type_rule.dart';
import 'package:union_type_lint/union_type_visitor.dart';
1
likes
130
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Dart analyzer plugin that validates UnionType annotations.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer

More

Packages that depend on union_type_lint