DatabaseValidator class

An object that validates information in the database.

The onRetrieveUserId field specifies the process of retrieving the authenticated user ID.

データベースの情報をバリデートするオブジェクト。

onRetrieveUserIdには、認証済みのユーザーIDを取得する処理を指定します。

Available Extensions
Annotations

Constructors

DatabaseValidator({required FutureOr<String?> onRetrieveUserId()})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onRetrieveUserId FutureOr<String?> Function()
The process of retrieving the authenticated user ID.
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
onDeleteDocument(ModelAdapterDocumentQuery query, DynamicMap? oldValue) Future<void>
This is the process when deleting a document.
onPostloadCollection(ModelAdapterCollectionQuery query, Map<String, DynamicMap>? value) Future<void>
This is the process after the collection is read.
onPostloadDocument(ModelAdapterDocumentQuery query, DynamicMap? value) Future<void>
This is the process after the document has been read.
onPreloadCollection(ModelAdapterCollectionQuery query) Future<void>
This is the process before loading the collection.
onPreloadDocument(ModelAdapterDocumentQuery query) Future<void>
This is the process before loading the document.
onSaveDocument(ModelAdapterDocumentQuery query, {DynamicMap? oldValue, required DynamicMap newValue}) Future<void>
This is the process when saving a document.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited