formattedMessage property

String get formattedMessage

Implementation

String get formattedMessage {
  final location = line != null
      ? '$fileName:$line${column != null ? ':$column' : ''}'
      : fileName;
  final parent =
      parentWidget != null ? '\nParent Widget:\n$parentWidget' : '';
  final overflow = overflowDirection != null
      ? '\nOverflow: ${overflowPixels?.toStringAsFixed(1) ?? '?'}px on the $overflowDirection side'
      : '';
  return '''
⚠ OVERFLOW RISK DETECTED

Widget:
$widgetName$parent$overflow

Location:
$location

Suggestion:
$suggestion
''';
}