union 0.0.3+1
union: ^0.0.3+1
union: ^0.0.4-nullsafety.1

Dart native js
Flutter Android iOS web

Type safe union types for dart, by using extensions from Dart 2.6

14
likes
100 / 110
pub points
74 %
popularity

We analyzed this package on Nov 26, 2020, and awarded it 100 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
20 / 20

10/10 points: Package has an example

  • Found example at: example/example.dart

10/10 points: 20% or more of the public API has dartdoc comments

  • 69 out of 70 API elements (98.6 %) have documentation comments.
Support multiple platforms
20 / 20

20/20 points: Supports 2 of 2 possible platforms (native, js)

Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 9 issues. Showing the first 2:

INFO: Unnecessary cast.

lib/src/union.dart:362:67

    ╷
362 │   Union1<T> asFirst() => (f, _b, _c, _d, _e, _f, _g, _h, _i) => f(this as T);
    │                                                                   ^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/union.dart

INFO: Unnecessary cast.

lib/src/union.dart:372:53

    ╷
372 │     return (_a, f, _c, _d, _e, _f, _g, _h, _i) => f(this as T);
    │                                                     ^^^^^^^^^
    ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/union.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

No dependencies.

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

14
likes
100
pub points
74%
popularity

Publisher

dash-overflow.net

Type safe union types for dart, by using extensions from Dart 2.6

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on union