init method

dynamic init(
  1. BuildContext context, {
  2. required PanelySidebarConfiguration sidebarConfiguration,
  3. required String panelTitle,
  4. required PanelyTheme theme,
  5. required BasePanelyContentPage startPage,
  6. required String pageTitle,
})

Implementation

init(
  BuildContext context, {
  required PanelySidebarConfiguration sidebarConfiguration,
  required String panelTitle,
  required PanelyTheme theme,
  required BasePanelyContentPage startPage,
  required String pageTitle,
}) {
  _theme = theme;
  _notification = PanelyNotification(context: context);
  _dialog = PanelyDialog(context: context);
  _panelTitle = panelTitle;
  _sidebarConfiguration = sidebarConfiguration;
  _navigator = PanelyNavigator(
    restorationScopeId: navigationRestorationScopeId,
    startPage: startPage,
  );
  notifyListeners();
}