routes property
The route definitions
Implementation
@override
get routes => [
PathedRouteDefinition([
[
NamedRouteDefinition(
route: "/chat", builder: (ctx, settings) => ChatWidget())
],
[
UriRoute((context, route) {
return Material(
color: Colors.transparent,
child: MessageWidget(channelId: route.pathSegments.last));
}),
]
]),
];