prefer-custom-finder-over-find
Suggests using custom finders instead of find
in Patrol tests.
Example
❌ Bad:
void main() {
patrolTest('widget test', () {
...
find.byType(SomeType); // LINT: Prefer custom finder ($) over 'find'.
find.text('SomeText'); // LINT: Prefer custom finder ($) over 'find'.
});
}
✅ Good:
void main() {
patrolTest('widget test', () {
...
$(SomeType);
$('SomeText');
});
}