Why this matters
Reduces noise, compile time, and accidental side effects.
Delete imports that are not referenced by the compilation unit.
Reduces noise, compile time, and accidental side effects.
Side-by-side examples engineers can pattern-match during review.
import 'dart:io'; // not used// removed unused import; keep only what is referencedimport 'package:x/y.dart'; // unused// no unused importsFrom the same buckets as this rule.