PanelKitPage constructor

PanelKitPage({
  1. Key? key,
  2. required String title,
  3. Widget builder(
    1. BuildContext context,
    2. PanelKitController controller
    )?,
  4. List<PanelKitPageTab>? tabs,
  5. bool showLoadingIndicator = false,
  6. Widget? header,
})

Implementation

PanelKitPage({
  super.key,
  required super.title,
  this.builder,
  this.tabs,
  this.showLoadingIndicator = false,
  this.header,
}) {
  if (tabs == null && builder == null)
    throw Exception("Tabs or builder is required");
  if (tabs != null && builder != null)
    throw Exception("Cant have both tabs and builder");
}