RiverpodGenerator class

Generates Riverpod-based state management classes for each API category.

Each generated Riverpod file:

  • Uses StateNotifier for logic
  • Defines a StateNotifierProvider
  • Contains Result<T> fields for all API actions
  • Provides async methods to call facade functions and update state
  • Replaces Bloc/Event/State/Provider with a single clean Riverpod file

Constructors

RiverpodGenerator({required Map<String, List<RouteInfo>> groupedRoutes, required String mainPath})

Properties

groupedRoutes Map<String, List<RouteInfo>>
final
hashCode int
The hash code for this object.
no setterinherited
mainPath String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateRiverpodForCategory(String category) → void
Generates a Riverpod file for a specific category
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