analyzeWidgetSize function

void analyzeWidgetSize(
  1. String path,
  2. String content
)

Implementation

void analyzeWidgetSize(String path, String content) {
  final lines = content.split('\n').length;

  if (lines > 300) {
    print('❌ Large widget/file detected: $path');
    print('✅ Recommendation: Split into smaller reusable widgets.\n');
  }
}