bunker_lib

Creator: coderz1093

Last updated:

0 purchases

bunker_lib Image
bunker_lib Images

Languages

Categories

Add to Cart

Description:

bunker lib

Welcome to [Bunker].




1.0.5 and null-safety #

Important note:
dependencies:
bunker_annotation: ^0.0.3

dev_dependencies:
bunker_lib: ^1.0.5
copied to clipboard
Run the generator #
To run the code generator you have two possibilities:

If your package depends on Flutter:

flutter pub run build_runner build


If your package does not depend on Flutter:

dart pub run build_runner build



Note that like most code-generators, [Bunker] will need you to both import the annotation ([meta])
and use the part keyword on the top of your files.
copyWith #
As stated in the very beginning of this readme, [Bunker] does not compromise
on the syntax to have a powerful copy.
The copyWith method generated by [Bunker] does support assigning a value
to null.
For example, if we take our previous Model class:
@BunkerAnnotation()
class Model with _$Model {
factory Model(String name, int age);
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.