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


Ease Ecosystem #

This package is part of the Ease State Helper ecosystem. Ease is divided into multiple packages to keep your production dependencies as light as possible:

Package Role Dependency Type
ease_state_helper Core runtime logic dependencies
ease_annotation Metadata for codegen dependencies
ease_generator Code generator dev_dependencies
ease_devtools_extension Debugging tools dev_dependencies

Features #

  • @Ease() - Mark classes for code generation.
  • Local Scoping - Use @Ease(local: true) for scoped providers.
  • Lightweight - Zero dependencies other than meta.

Why Ease Annotation? #

This package provides the metadata needed by ease_generator to create type-safe BuildContext extensions and InheritedModel providers. By separating annotations from the generator and core library, we keep your app's runtime dependencies minimal.

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
8
downloads

Documentation

API reference

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

License

MIT (license)

More

Packages that depend on ease_annotation