MapperRef<M> class

Base class for type-safe mapper references.

Used internally by annotations like RdfGlobalResource, RdfLocalResource, RdfIri, and RdfLiteral to specify how custom mappers should be provided to the generated code. This class enables flexible dependency injection and customization options.

Constructors

MapperRef({String? name, Type? type, M? instance, String? factoryName, Object? factoryConfigInstance})
Creates a mapper reference with optional injection configuration.
const

Properties

factoryConfigInstance Object?
The configuration instance to pass to the factory function, if any.
final
factoryName String?
The name to use for the factory parameter in the generated initRdfMapper method. Enables dependency injection of factory functions that create mappers.
final
hashCode int
The hash code for this object.
no setterinherited
instance → M?
A direct mapper instance to be used. Allows for pre-configured mapper instances with specific behaviors.
final
name String?
The name to use for the mapper parameter in the generated initRdfMapper method. Enables dependency injection of specific mapper instances.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type?
The Type of the mapper to instantiate. The generator will create an instance of this type at runtime.
final

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