ease_annotation 0.2.0 copy "ease_annotation: ^0.2.0" to clipboard
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 #

pub package License: MIT

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

0
likes
160
points
62
downloads

Publisher

verified publisherwidget-lab.dev

Weekly Downloads

Annotations for ease_state_helper Flutter state management library. Use @Ease() to mark StateNotifier classes for code generation.

Repository (GitHub)
View/report issues
Contributing

Topics

#state-management #annotation #code-generation

Documentation

API reference

License

MIT (license)

More

Packages that depend on ease_annotation