NiceWiki constructor

const NiceWiki({
  1. Key? key,
  2. required List<NiceWikiPage> pages,
  3. String? selectedPageId,
  4. ValueChanged<NiceWikiPage>? onSelectPage,
  5. void onSavePage(
    1. String pageId,
    2. String content,
    3. String title
    )?,
  6. void onCreatePage(
    1. String? parentId,
    2. String title
    )?,
  7. ValueChanged<String>? onDeletePage,
  8. bool editable = false,
  9. bool searchable = true,
  10. double sidebarWidth = 260,
})

Implementation

const NiceWiki({
  super.key,
  required this.pages,
  this.selectedPageId,
  this.onSelectPage,
  this.onSavePage,
  this.onCreatePage,
  this.onDeletePage,
  this.editable = false,
  this.searchable = true,
  this.sidebarWidth = 260,
});