RiverpodPersist class

An interface to mark annotations as "used to enable persistence for a provider".

This tells Riverpod that a separate code-generator wants to modify Notifiers to add persistence capabilities.

Note: When this annotation is used, Riverpod will no-longer generate a _$MyNotifier. Instead it will generate a _$MyNotifierBase and then expect the third-party generator to generate a _$MyNotifier that extends _$MyNotifierBase.

Implementers

Constructors

RiverpodPersist.new()
An interface to mark annotations as "used to enable persistence for a provider".
const

Properties

hashCode int
The hash code for this object.
no setterinherited
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