Skip to content

fix: Add missing type annotation and remove redundant default case - …#3427

Open
abhaysaqi wants to merge 1 commit intojonataslaw:masterfrom
abhaysaqi:fix/add-type-annotation
Open

fix: Add missing type annotation and remove redundant default case - …#3427
abhaysaqi wants to merge 1 commit intojonataslaw:masterfrom
abhaysaqi:fix/add-type-annotation

Conversation

@abhaysaqi
Copy link

TITLE FIELD:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
fix: Add missing type annotation to _canPop method

DESCRIPTION FIELD:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Description

Fixed Dart analyzer warning by adding missing type annotation to _canPop()
method and removing redundant default case.

Changes

  • Added bool return type to _canPop() method
  • Removed redundant default case in switch statement (enum exhaustiveness)

File: lib/get_navigation/src/routes/get_router_delegate.dart

Testing

  • Ran dart analyze — No issues
  • All PopMode enum cases covered

Type of Change

  • Bug fix

…Added 'bool' return type to _canPop() method
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.

1 participant