findChildOfExactType method

dynamic findChildOfExactType(
  1. Type T, {
  2. String? id,
})

Implementation

dynamic findChildOfExactType(Type T, {String? id}) =>
    children?.firstWhereOrNull((child) =>
        child.runtimeType == (T) && (child.id == (id ?? child.id)));