RiverpodCraftPlugin<T> class abstract

The interface every riverpod_craft plugin implements.

A plugin defines:

  1. What annotations it handles (e.g., ['provider'], ['paginated'])
  2. How to collect data from annotated classes/functions
  3. How to generate Dart code from that data
Implementers

Constructors

RiverpodCraftPlugin()

Properties

annotations List<String>
The annotation names this plugin handles.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this plugin (e.g., 'provider', 'command', 'pagination').
no setter
requiredImports List<String>
Additional imports the generated file needs.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

collect(DartElementInfo element) → T?
Called for each annotated element whose annotation matches this plugin.
generate(T collectedData) String
Generate Dart code from collected data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited