Why this matters
Reduces duplication and keeps visual behavior consistent.
Factor identical widget trees or builders into private helpers or dedicated widgets.
Reduces duplication and keeps visual behavior consistent.
Side-by-side examples engineers can pattern-match during review.
ListTile(title: Text(user.name), trailing: Icon(Icons.chevron_right)) // copy-pastedWidget userTile(User u) => ListTile(title: Text(u.name), trailing: const Icon(Icons.chevron_right));same ListTile everywhereUserTile(user: u) // custom widgetFrom the same buckets as this rule.