init method
dynamic
init(
- BuildContext context, {
- required PanelySidebarConfiguration sidebarConfiguration,
- required String panelTitle,
- required PanelyTheme theme,
- required BasePanelyContentPage startPage,
- 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();
}