exampleGood property

String? get exampleGood

Short code example of COMPLIANT code (shown in CLI walkthrough).

Override to provide a concise terminal-friendly snippet (2-5 lines max). Displayed alongside exampleBad during the interactive walkthrough.

Example:

@override
String? get exampleGood => "import '../utils.dart';";

Implementation

// Named sentinel instead of literal `null` — see _noExample above for rationale.
String? get exampleGood => _noExample;