childrenByDocumentType method

List<GenericDocument> childrenByDocumentType(
  1. String name
)

Returns all children of generic document given its document type name. Returns null if not found.

Implementation

List<GenericDocument> childrenByDocumentType(String name) {
  return children.where((element) => element.type.name == name).toList();
}