FileBrowser constructor

const FileBrowser({
  1. Key? key,
  2. required RoomClient room,
  3. String initialPath = "",
  4. bool multiple = false,
  5. void onSelectionChanged(
    1. List<String> selection
    )?,
  6. FileBrowserSelectionMode selectionMode = FileBrowserSelectionMode.files,
  7. String rootLabel = "Files",
  8. FileBrowserHeaderBuilder? headerBuilder,
  9. FileBrowserRowBuilder? rowBuilder,
  10. FileBrowserSeparatorBuilder? separatorBuilder,
  11. FileBrowserEmptyBuilder? emptyBuilder,
  12. bool showFilesWhenSelectingFolders = false,
  13. Set<String>? allowedFileExtensions,
  14. void onPathChanged(
    1. String path
    )?,
})

Implementation

const FileBrowser({
  super.key,
  required this.room,
  this.initialPath = "",
  this.multiple = false,
  this.onSelectionChanged,
  this.selectionMode = FileBrowserSelectionMode.files,
  this.rootLabel = "Files",
  this.headerBuilder,
  this.rowBuilder,
  this.separatorBuilder,
  this.emptyBuilder,
  this.showFilesWhenSelectingFolders = false,
  this.allowedFileExtensions,
  this.onPathChanged,
});