prefer_iterable_whereType

Group: style

Maturity: stable

Linter v0.1.47

Since info is static, may be stale
corerecommendedflutterpedantic

View all Lint Rules

Using the Linter

PREFER iterable.whereType<T>() over iterable.where((e) => e is T).

BAD:

iterable.where((e) => e is MyClass)

GOOD:

iterable.whereType<MyClass>()