Future<void> startReplication(Database database) async { final replicator = await Replicator.create(ReplicatorConfiguration( database: database, target: UrlEndpoint(Uri.parse('ws://localhost:5984/chatapp')), continuous: true, authenticator: BasicAuthenticator(username: 'admin', password: 'admin'), replicatorType: ReplicatorType.pushAndPull, headers: {'CustomHeader': 'SomeHeaderValue'}, )); await replicator.start(); }
‘database’ is deprecated and shouldn’t be used. Add a CollectionConfiguration for the default collection instead.
How can i solve this problem? Thanks you ????
‘database’ is deprecated and shouldn’t be used. Add a CollectionConfiguration for the default collection instead.
Roberto rodriguez carbonell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.