build method
- BuildContext _,
- GoRouterState __
override
Creates the Widget for this route.
Subclasses must override one of build, buildPage, or redirect.
Corresponds to GoRoute.builder.
Implementation
@override
Widget build(_, __) {
// If there is no id (i.e. path is '/evenement'), move to createEvent
if (edit == true) return const CreateActivityPage();
return ActivityPage(id: id);
}