DocumentDatabaseAdapter<T> class
Adapter demonstrating how Document Databases (Cloud Firestore, Supabase, MongoDB) integrate with MetaMantle without introducing vendor SDK dependencies into core.
- Implemented types
Constructors
-
DocumentDatabaseAdapter({required DocumentFetcher fetcher, required DocumentMapper<
T> mapper, required String collection, String idParam = 'slug'}) -
const
Properties
- collection → String
-
final
- fetcher → DocumentFetcher
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idParam → String
-
final
-
mapper
→ DocumentMapper<
T> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
load(
RouteDataContext context) → Future< DataProviderResult< T> > -
Loads typed data for the given
context.override -
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