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

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

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
0
pub points
0%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

analyzer, build, controllable, dart_code_writer, glob, source_gen

More

Packages that depend on controllable_generator