Skip to content

[go_router_builder] withNullability is deprecated #166603

Closed

Description

@bparrishMines
info • lib/src/go_router_generator.dart:82:55 • 'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/route_config.dart:612:47 • 'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:71:36 • 'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use
   info • lib/src/type_helpers.dart:114:54 • 'withNullability' is deprecated and shouldn't be used. Only non-nullable by default mode is supported. Try replacing the use of the deprecated member with the replacement. • deprecated_member_use

Activity

  1. added
    c: tech-debtTechnical debt, code quality, testing, etc.
    P2Important issues not at the top of the work list
    p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updated
    packageflutter/packages repository. See also p: labels.
    on Apr 4, 2025
  2. ValentinVignal commented on Apr 10, 2025

    @ValentinVignal
    Contributor

    Image

    I'm a bit confused by it. The deprecated message says "Only non-nullable by default mode is supported". So it sounds like it should be used with false only.
    However, the default value is true, which is forcing go_router_builder to specify the parameter and, therefore get the deprecation message. What is expected to be done? Or did I misunderstand something ?

    Image

  3. stuartmorgan-g commented on Nov 26, 2025

    @stuartmorgan-g
    Contributor

    This (and several other deprecated API usages in this package) will probably be resolved as part of #179073.

  4. github-actions commented on Dec 14, 2025

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  5. locked as resolved and limited conversation to collaborators on Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.p: deprecated apiUse of a deprecated Dart API in flutter/packages that needs to be updatedp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions