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
find.text('SomeText'); // LINT
});
}
✅ Good:
void main() {
patrolTest('widget test', () {
...
$(SomeType);
$('SomeText');
});
}