handleMissingRemoteValue method

  1. @protected
Future<void> handleMissingRemoteValue()

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());
  }
}