set method

Implementation

InAppDocumentNotifier set(
  String id, [
  InAppDocumentSnapshot? value,
]) {
  final i = children[id];
  if (i == null) children[id] = InAppDocumentNotifier(value, id);
  final x = i ?? children[id];
  return x is InAppDocumentNotifier ? x : InAppDocumentNotifier(null, id);
}