When using universal links and Go Router if I have a webpage such as www.mywebsite.com/factfile/MickeyMouse please can you tell me how to pass the string “MickeyMouse” to a class? (or how to send the whole page path and I can just extract the string after the forward slash in the class?)
I was thinking something like:
final router = GoRouter(
routes: [
GoRoute(
path: '/',
builder: (_, __) => Scaffold(
appBar: AppBar(title: const Text('Home Screen')),
),
routes: [
GoRoute(
path: 'factfile/*',
builder: (_, __) => ShowFactfile(path:path),
),
],
),
],
);
Thank you for any pointers,
N