rxget_annotation 0.0.2
rxget_annotation: ^0.0.2 copied to clipboard
Annotations for rxget code generation. Use with rxget_generator to eliminate GetxState boilerplate.
rxget_annotation #
Annotations for the rxget state management package. Use with rxget_generator to eliminate GetxState boilerplate.
Usage #
Use the @getxState annotation on a class to define your reactive state schema:
import 'package:rxget_annotation/rxget_annotation.dart';
@getxState
class CounterState {
CounterState({
this.count = 0,
this.isEditing = false,
});
// Reactive
int count;
// Non reactive variable for manuel updates
@update
bool isEditing;
}