Skip to content

[go_router] Remove namedLocation API #107729

@johnpryan

Description

@johnpryan

The current implementation of namedLocation uses asserts and isn't tested. We should simplify or deprecate this API. It's not doing anything related to routing, and users can implement their own map from named locations to paths on their own using a Map. Another option is to use typed routes with go_router_builder instead of this API.

Context: flutter/packages#2317 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions