Skip to content

Align Boolean Variable Names with Dart Guidelines #318

@DCodeProg

Description

@DCodeProg

Summary

Refactor boolean variables and properties across the codebase to align with Dart naming recommendations by adding standard prefixes (e.g., is, has).

Details

Current implementation declares boolean variables using simple adjectives or nouns (e.g., bool empty, bool valid).
This naming convention is inconsistent with the Dart ecosystem and can lead to ambiguity regarding the variable's type or intent.

Proposal: Rename all boolean fields, parameters, and local variables to use is, has, or should prefixes.

// Current
bool empty = true;
bool error = false;

// Proposed
bool isEmpty = true;
bool hasError = false;

Additional Notes / References

Pre‑Work Checklist

  • No existing issue covers this work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions