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

Libraries

ease_annotation
Annotations for ease state management.