set static method
void
set({
- Widget? unknownScreen,
- Widget? errorScreen,
- Widget? waitingScreen,
- List<
RouteInfo> ? routes, - RouteInfo? dashboardRoute,
- FlickerColors? colors,
- Completer<
void> ? isAppInitialised, - FlickerDisplayOptions? displayOptions,
Implementation
static void set(
{Widget? unknownScreen,
Widget? errorScreen,
Widget? waitingScreen,
List<RouteInfo>? routes,
RouteInfo? dashboardRoute,
List<Menu>? menus,
FlickerColors? colors,
Completer<void>? isAppInitialised,
FlickerDisplayOptions? displayOptions}) {
if (unknownScreen != null)
FlickerConfiguration.unknownScreen = unknownScreen;
if (errorScreen != null) FlickerConfiguration.errorScreen = errorScreen;
if (waitingScreen != null)
FlickerConfiguration.waitingScreen = waitingScreen;
if (routes != null) FlickerConfiguration.routes = routes;
if (dashboardRoute != null)
FlickerConfiguration.dashboardRoute = dashboardRoute;
if (menus != null) FlickerConfiguration.menus = menus;
if (colors != null) FlickerConfiguration.colors = colors;
FlickerConfiguration.displayOptions =
displayOptions ?? FlickerDisplayOptions();
if (isAppInitialised != null)
FlickerConfiguration.isAppInitialised = isAppInitialised;
}