ease_annotation 0.2.0
ease_annotation: ^0.2.0 copied to clipboard
Annotations for ease_state_helper Flutter state management library. Use @Ease() to mark StateNotifier classes for code generation.
Ease Annotation #
Annotation package for Ease State Helper.
Installation #
dependencies:
ease_annotation: ^0.1.0
Usage #
import 'package:ease_annotation/ease_annotation.dart';
import 'package:ease_state_helper/ease_state_helper.dart';
part 'counter_view_model.ease.dart';
@Ease()
class CounterViewModel extends StateNotifier<int> {
CounterViewModel() : super(0);
void increment() => state++;
}
Run code generation:
dart run build_runner build
License #
MIT