super_enum_sealed_generators 1.4.0 copy "super_enum_sealed_generators: ^1.4.0" to clipboard
super_enum_sealed_generators: ^1.4.0 copied to clipboard

Dart and Flutter sealed or union class generator and annotations based on super_enum API.

example/example.dart

import 'result.dart';
import 'weather.dart';

void main() {
  final a = Weather.sunny();
  final b = Weather.rainy(rain: 12);
  final c = Weather.windy(velocity: 1.5, angle: null);

  print(a);
  print(b);
  print(c);

  final d = Result.success(data: 1);
  final e = Result.success(data: 5.6);
  final f = Result.error(exception: 'error');

  print(d);
  print(e);
  print(f);
}
0
likes
130
pub points
8%
popularity

Publisher

unverified uploader

Dart and Flutter sealed or union class generator and annotations based on super_enum API.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, meta, pub_semver, sealed_writer, source_gen, super_enum_sealed_annotations

More

Packages that depend on super_enum_sealed_generators