MCPcopy
hub / github.com/flet-dev/flet / LocationInfo

Class LocationInfo

sdk/python/packages/flet/src/flet/components/router.py:112–124  ·  view source on GitHub ↗

Describes the current location parsed from the page route. Args: pathname: URL path portion (e.g. `/products/42`). search: Query string portion without leading `?`. hash: Fragment portion without leading `#`.

Source from the content-addressed store, hash-verified

110
111@dataclass
112class LocationInfo:
113 """
114 Describes the current location parsed from the page route.
115
116 Args:
117 pathname: URL path portion (e.g. `/products/42`).
118 search: Query string portion without leading `?`.
119 hash: Fragment portion without leading `#`.
120 """
121
122 pathname: str
123 search: str = ""
124 hash: str = ""
125
126
127# ---------------------------------------------------------------------------

Callers 1

RouterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected