replaceOne method
replaceOne replaces a single document in the collection that matches the filter. If multiple documents match, replaceOne will replace the first matching document only.
Implementation
void replaceOne(ReplaceOneStatement replaceRequest) =>
_setCommand(ReplaceOneOperation(collection!, replaceRequest));