find method

Object? find(
  1. Pattern name
)

Find a child matching the name

Implementation

Object? find(Pattern name) {
  for (Object child in children) {
    if (child.name != null && (name as RegExp).hasMatch(child.name!)) return child;
    final Object? result = child.find(name);
    if (result != null) return result;
  }
  return null;
}