RiverpodCraftPlugin<T> class
abstract
The interface every riverpod_craft plugin implements.
A plugin defines:
- What annotations it handles (e.g.,
['provider'],['paginated']) - How to collect data from annotated classes/functions
- How to generate Dart code from that data
- Implementers
Constructors
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