firedart_repository 1.0.3 firedart_repository: ^1.0.3 copied to clipboard
A DatabaseAdapter for the firebase database as used by the database_repository package
void main() async {
// You can find this in your firebase project settings
final myFirebaseProjectId = "";
final myDatabaseAdapter = FiredartDatabaseAdapter(firebaseProjectId: myFirebaseProjectId)
// Register a Database Adapter that you want to use.
DatabaseAdapterRegistry.register(myDatabaseAdapter);
final repository = DatabaseRepository.fromRegistry(serializer: mySerializer, name: 'firebase');
// Now use some methods such as create() etc.
}