handleMissingRemoteValue method
Implementation
@protected
Future<void> handleMissingRemoteValue() async {
if (_doc.value.dto.isDefault && onMissingRemoteValue != null) {
await createDoc(
id: userId,
doc: (vars) => onMissingRemoteValue!(vars, collection, this),
);
} else {
_doc.update(defaultDoc());
}
}