set static method

void set({
  1. Widget? unknownScreen,
  2. Widget? errorScreen,
  3. Widget? waitingScreen,
  4. List<RouteInfo>? routes,
  5. RouteInfo? dashboardRoute,
  6. List<Menu>? menus,
  7. FlickerColors? colors,
  8. Completer<void>? isAppInitialised,
  9. 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;
}