dart-best-practices | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / dart-best-practices

dart-best-practices

maintained by HoangNguyen0403

star 143 account_tree 48 verified_user MIT License
bolt View GitHub

name: Dart Best Practices description: General purity standards for Dart development. metadata: labels: [dart, clean-code] triggers: files: ['**/*.dart'] keywords: [import, final, const, var, global]

Dart Best Practices

Priority: P1 (OPERATIONAL)

Best practices for writing clean, maintainable Dart code.

  • Scoping:
    • No global variables.
    • Private globals (if required) must start with _.
  • Immutability: Use const > final > var.
  • Config: Use --dart-define for secrets. Never hardcode API keys.
  • Naming: Follow effective-dart (PascalCase classes, camelCase members).
import 'models/user.dart'; // Good
import 'package:app/models/user.dart'; // Avoid local absolute

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 143
GitHub Forks 48
Created Jan 2026
Last Updated 8个月前
tools tools defi

Related Skills

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.