routes property
We provide a route here, "/example"
Implementation
@override
List<RouteDefinition> get routes => [
NamedRouteDefinition(
route: "/example",
builder: (ctx, settings) => Row(
children: [
/// We will show 2 instances of this state
Expanded(
child: LocatorDemo(
instanceId: "Instance 1",
)),
Expanded(
child: LocatorDemo(
instanceId: "Instance 2",
)),
],
))
];