registerCustomRoute method
Registers a custom route
with the framework. These routes will be
displayed on the TestStepsDialog
and TestStepsPage. The display
is
the string to display in a ListTile's title to trigger navigation to the
route
. If the route is null
, this will remove any route registered to
the display
. If the display
is already registered, it will be
replaced with the new route
Implementation
void registerCustomRoute(String display, PageRoute? route) => route == null
? _customRoutes.remove(display)
: _customRoutes[display] = route;