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. FileBrowserListBuilder? listBuilder,
  11. FileBrowserSeparatorBuilder? separatorBuilder,
  12. FileBrowserEmptyBuilder? emptyBuilder,
  13. WidgetBuilder? loadingBuilder,
  14. FileBrowserErrorBuilder? errorBuilder,
  15. bool showFilesWhenSelectingFolders = false,
  16. Set<String>? allowedFileExtensions,
  17. void onPathChanged(
    1. String path
    )?,
  18. Map<String, String> displayNamesByPath = const <String, String>{},
})

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.listBuilder,
  this.separatorBuilder,
  this.emptyBuilder,
  this.loadingBuilder,
  this.errorBuilder,
  this.showFilesWhenSelectingFolders = false,
  this.allowedFileExtensions,
  this.onPathChanged,
  this.displayNamesByPath = const <String, String>{},
});