skills/dart/dart-logic-patterns/SKILL.md
Apply efficient algorithms, data structures, and Dart 3 pattern matching for clean business logic. Use when implementing search, sorting, debouncing, memoization, or exhaustive control flow in domain layers.
npx skillsauth add dhruvanbhalara/skills dart-logic-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
The efficiency of your business logic directly impacts battery life and responsiveness.
Map: Fast key-based lookups.Set: Fast unique item management.List: Fast indexing and sequential access.LinkedHashSet/Map: Preserves insertion order while providing fast lookups.package:memoize or custom implementations.list.sort(), which uses highly optimized algorithms. Provide targeted Comparable implementations for custom objects.development
Perform REST API networking operations (GET, POST, PUT, DELETE) using the lightweight and robust standard `http` package, including platform configurations and background parsing models.
development
Configure internationalization and localization support using Flutter's built-in l10n system, App Resource Bundle (ARB) files, and ICU formatting syntax.
development
Create model classes with fromJson/toJson using dart:convert and Dart 3 pattern matching. Use when manually mapping JSON to classes, parsing HTTP responses, or choosing between manual and code-generated serialization.
data-ai
Diagnose and fix Flutter layout constraint violations (RenderFlex overflow, unbounded height/width, ParentData misuse). Use when encountering layout exceptions, yellow-black overflow stripes, or red error screens.