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