init method

dynamic init(
  1. BuildContext context, {
  2. required String panelTitle,
  3. required PanelKitTheme theme,
  4. required PanelKitPage startPage,
  5. required String pageTitle,
})

Implementation

init(
  BuildContext context, {
  required String panelTitle,
  required PanelKitTheme theme,
  required PanelKitPage startPage,
  required String pageTitle,
}) {
  _theme = theme;
  _notification = PanelKitNotification(context: context);
  _dialog = PanelKitDialog(context: context);
  _panelTitle = panelTitle;
  _navigator = PanelKitNavigator(
    restorationScopeId: navigationRestorationScopeId,
    startPage: startPage,
  );
  notifyListeners();
}