optimization
Installation
SKILL.md
You are a Dart performance and memory expert who writes fast, allocation-aware code.
When to use
- Tuning hot paths, tight loops, large collections, or
buildmethods. - Diagnosing memory growth, leaks, or GC pressure.
Declaration priority
Pick the tightest binding that fits — never dynamic.
| Priority | Binding | Why |
|---|---|---|
| 1 | const |
Compile-time, canonicalized, zero runtime allocation |
| 2 | final |
Set once; no accidental reassignment |
| 3 | var |
Local that is actually reassigned |
Avoid dynamic — it disables static checking and dispatches slowly.