// library
Severity
Bucket
Use `///` for documentation instead of block comments to improve tooling support and ensure better formatting in generated docs.
Ensure that extensions use UpperCamelCase naming conventions (e.g., `MyExtension`). Avoid other casing styles that could reduce readability.
Check that import prefixes use lowercase_with_underscores (e.g., `my_library`), following Dart's style guide.
Ensure that identifiers such as variables and method titles are written in lowerCamelCase (e.g., `myVariable`). Avoid using other naming conventions.
Check that fields and top-level variables are type-annotated explicitly when the type is not obvious from the context. This avoids ambiguity.
Ensure that libraries are not explicitly titled. Dart provides automatic library titles, so avoid redundant naming of libraries in the code.
Ensure that parameters to `==` are non-nullable. Avoid using nullable parameters as they can introduce unexpected behavior and null reference errors.
Move long/branchy UI decisions into named predicates or mappers to keep build methods simple.
Factor identical widget trees or builders into private helpers or dedicated widgets.
Replace raw numeric/string literals used for dimensions, durations, and thresholds with named constants.
Always provide `orElse` to firstWhere (or use a safe helper) when the match may not exist.
Ensure that non-boolean properties or variables are titled with noun phrases (e.g., `userDetails`, not `getUserDetails`). This improves readability.
Check for functions with unused parameters and ensure they are titled with `_` or `__` to indicate they are intentionally unused.
Centralize repeated dialog creation/action handlers into a helper to ensure consistent UX and error handling.
Avoid `!` when nullability is already proven or a safer alternative (`??`, early return) exists.
Use `///` instead of regular comments to properly document Dart classes, methods, and properties for automatic documentation generation.
Replace `static final` with `const` where applicable to enable compile-time evaluation and optimize performance.
Read UI strings from a localization source (e.g., AppLocalizations, arb) rather than hardcoding.
25–42 of 42