exampleBad property

  1. @override
String get exampleBad
override

Short code example that VIOLATES this rule (shown in CLI walkthrough).

Override to provide a concise terminal-friendly snippet (2-5 lines max). Displayed during dart run saropa_lints:init interactive stylistic walkthrough to help users understand what the rule catches.

Return null to fall back to LintCode.correctionMessage in the walkthrough display.

Example:

@override
String? get exampleBad => "import 'package:my_app/src/utils.dart';";

Implementation

@override
String get exampleBad => "RichText(text: TextSpan(text: 'Hi'))";