byType function

Finder byType(
  1. Type type
)

Matches elements whose widget Object.runtimeType equals type.

byType(TextInput) matches every TextInput widget in the tree — including duplicates. Use byKey when there are multiple instances and you want a specific one.

Implementation

Finder byType(Type type) => _TypeFinder(type);