What problem does it solve?
This Skill helps developers write high-quality, idiomatic Dart and Flutter code by enforcing Effective Dart guidelines, improving code readability, maintainability, and consistency.
Core Features & Use Cases
- Naming Conventions: Ensures consistent and descriptive naming for classes, variables, functions, and files.
- Type Safety: Promotes the correct use of types, annotations, and generics for robust code.
- Code Style: Guides formatting, brace usage, and the use of
final and const for cleaner code.
- Import & File Structure: Recommends best practices for organizing code and managing dependencies.
- Documentation: Emphasizes clear and concise documentation for public and private APIs.
- Testing: Encourages writing unit and widget tests for comprehensive coverage.
- Widget Best Practices: Advises on creating reusable widgets and keeping build methods simple.
- State Management: Recommends choosing appropriate state management solutions and keeping state local.
- Performance: Offers tips for optimizing code, such as using
const constructors and avoiding expensive operations in build methods.
- Use Case: When writing a new Flutter widget, use this Skill to ensure all naming, typing, and structural conventions are followed according to Effective Dart guidelines.
Quick Start
Review the provided Dart code snippet to ensure it adheres to Effective Dart naming conventions.