controllable_generator 0.0.8 copy "controllable_generator: ^0.0.8" to clipboard
controllable_generator: ^0.0.8 copied to clipboard

A generator for the controllable and controllable_flutter packages that makes working with controllable easier.

0.0.8 #

Don't specify effect types as of controllable 0.0.4.

0.0.7 #

Call onProvided in the generated mixin.

0.0.6 #

Don't generate isInitilized property (revert of 0.0.5) but use isProvided property of the core package instead.

0.0.5 #

onProvided is now called only once when the controller is provided for the very first time.

0.0.4 #

Allow to use emitWith with nulls. Previously, using a null meant «do not change this variable». Now, using a null actually means «use this null».

@override
void onIncrementCounter() {
    // state.counter == 10032000 now.
    emitWith(counter: 10032000);

    // Previously this would not change the value.
    emitWith(counter: null);

    // Now this line would not even compile if counter is not nullable!
    // And if it is nullable, a new state with counter == null will be emitted.
    emitWith(counter: null);
}

0.0.3 #

Allow to use named parameters in events.

0.0.2 #

Use .x.dart extension for generated files.

0.0.1 #

Initial release.

0
likes
130
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

A generator for the controllable and controllable_flutter packages that makes working with controllable easier.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, controllable, dart_code_writer, glob, source_gen

More

Packages that depend on controllable_generator