virtual_statics_builder 0.0.2 copy "virtual_statics_builder: ^0.0.2" to clipboard
virtual_statics_builder: ^0.0.2 copied to clipboard

Overwrite static fields on sealed classes in Dart (using a generated companion enum).

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add virtual_statics_builder

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

dependencies:
  virtual_statics_builder: ^0.0.2

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:virtual_statics_builder/virtual_statics_builder.dart';
0
likes
130
points
35
downloads

Publisher

verified publisherbent.party

Weekly Downloads

Overwrite static fields on sealed classes in Dart (using a generated companion enum).

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, build, source_gen, virtual_statics

More

Packages that depend on virtual_statics_builder