findDescendantsOfExactType method

List findDescendantsOfExactType(
  1. Type? T, {
  2. String? id,
  3. Type? breakOn,
})

Implementation

List<dynamic> findDescendantsOfExactType(Type? T,
    {String? id, Type? breakOn}) {
  var list = [];
  children?.forEach((child) {
    if (child.runtimeType != breakOn) {
      list.addAll(child._findDescendantsOfExactType(T, id));
    }
  });
  return list;
}