Skip to content

refactor: make _defaultCheckOptions static & unmodifiable#134

Merged
OutdatedGuy merged 2 commits into
mainfrom
refactor/static-defaults
May 22, 2026
Merged

refactor: make _defaultCheckOptions static & unmodifiable#134
OutdatedGuy merged 2 commits into
mainfrom
refactor/static-defaults

Conversation

@OutdatedGuy

Copy link
Copy Markdown
Owner

No description provided.

@OutdatedGuy OutdatedGuy requested a review from Copilot May 22, 2026 13:51
@OutdatedGuy OutdatedGuy self-assigned this May 22, 2026
@OutdatedGuy OutdatedGuy added the enhancement New feature or request label May 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Refactors InternetConnection’s default endpoint list to be a static field, aiming to reduce per-instance allocations when constructing connectivity check options.

Changes:

  • Converted _defaultCheckOptions from an instance field to a static final field in InternetConnection.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/src/internet_connection.dart Outdated
@OutdatedGuy OutdatedGuy changed the title refactor: make _defaultCheckOptions static for better perf refactor: make _defaultCheckOptions static & unmodifiable May 22, 2026

@OutdatedGuy OutdatedGuy left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

LGTM!

@OutdatedGuy OutdatedGuy merged commit 4e6169c into main May 22, 2026
3 checks passed
@OutdatedGuy OutdatedGuy deleted the refactor/static-defaults branch May 22, 2026 14:10
@OutdatedGuy OutdatedGuy mentioned this pull request Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants