ease_annotation 0.1.0 copy "ease_annotation: ^0.1.0" to clipboard
ease_annotation: ^0.1.0 copied to clipboard

Annotations for ease state management helper

Ease Annotation #

Annotation package for the Ease state management library.

Overview #

This package provides the @ease() annotation used to mark classes for code generation. It is a pure Dart package with no Flutter dependency.

Installation #

This package is automatically included when you add ease to your dependencies. You typically don't need to add it directly:

dependencies:
  ease: ^1.0.0  # includes ease_annotation

Usage #

import 'package:ease_annotation/ease_annotation.dart';

@ease()
class CounterViewModel extends StateNotifier<int> {
  CounterViewModel() : super(0);
}

The annotation triggers code generation via ease_generator to create:

  • Provider widget for lifecycle management
  • InheritedModel for efficient state propagation with selective rebuilds
  • BuildContext extensions for easy access

API #

@ease() #

A const annotation that marks a class for code generation.

const ease();

The annotated class must extend StateNotifier<T> from the ease package.

License #

MIT

0
likes
0
points
272
downloads

Publisher

verified publisherwidget-lab.dev

Weekly Downloads

Annotations for ease state management helper

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on ease_annotation