Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: upgrade to very_good_analysis v2.4.0 #1

Merged
merged 1 commit into from Oct 22, 2021

Conversation

felangel
Copy link
Contributor

Description

  • refactor: upgrade to very_good_analysis v2.4.0

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel self-assigned this Oct 22, 2021
late final canSubmit =
Formz.validate([username]) == FormzStatus.valid && !isBusy;
late final showUsernameAvailable = username.valid && !isCheckingUsername;
bool get isBusy {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know we conventionally use getters for this sort of thing, but the state is immutable and there's no need to make these recompute on every access, is there?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, use getters so we can have const classes

@definitelyokay definitelyokay merged commit c4f2279 into main Oct 22, 2021
@definitelyokay definitelyokay deleted the refactor/very-good-analysis-2.4.0 branch October 22, 2021 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants