RiverpodCraftOptions class

The resolved riverpod_craft configuration for one build: the mapper functions already parsed down to the facts the generator needs.

Immutable and passed explicitly down the generation path. build_runner runs build steps concurrently, so configuration must never live in mutable globals where one step can change what another is reading.

Constructors

RiverpodCraftOptions({String? errorMapperPath, String? errorMapperSource, String? errorMapperOutputType, String? pagedMapperPath, String? pagedMapperSource, String? pagedMapperInputType})
const

Properties

errorMapperOutputType String?
The mapper's return type — becomes the error type parameter F.
final
errorMapperPath String?
final
errorMapperSource String?
The errorMapper function source, already renamed to RiverpodCraftOptions.errorMapperInlineName.
final
errorType String
The error type parameter F in generated code: the mapper's return type when one is configured, otherwise Object.
no setter
hasErrorMapper bool
no setter
hashCode int
The hash code for this object.
no setterinherited
hasPagedMapper bool
no setter
pagedMapperInputType String?
The mapper's first parameter type, minus generics.
final
pagedMapperPath String?
final
pagedMapperSource String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

resolve({String? errorMapperPath, String? errorMapperContent, String? pagedMapperPath, String? pagedMapperContent}) RiverpodCraftOptions
Parses both mapper sources. Pure — no filesystem, no globals — so the caller can cache the result by source content.

Constants

empty → const RiverpodCraftOptions
errorMapperInlineName → const String
Private name the user's errorMapper is inlined under in each generated part. The leading _ keeps it library-private so barrel re-exports can't produce an ambiguous export.