NiceFileBrowser constructor

const NiceFileBrowser({
  1. Key? key,
  2. required List<NiceFileItem> items,
  3. NiceFileBrowserViewMode viewMode = NiceFileBrowserViewMode.list,
  4. bool multiSelect = false,
  5. List<String> selectedIds = const [],
  6. ValueChanged<List<String>>? onSelectionChanged,
  7. ValueChanged<NiceFileItem>? onItemTap,
  8. ValueChanged<NiceFileItem>? onItemDoubleTap,
  9. void onItemAction(
    1. NiceFileItem,
    2. NiceFileAction
    )?,
  10. bool showPath = true,
  11. String? currentPath,
  12. ValueChanged<String>? onPathChanged,
  13. bool showSearch = true,
  14. bool showToolbar = true,
  15. List<NiceFileAction>? contextActions,
})

Implementation

const NiceFileBrowser({
  super.key,
  required this.items,
  this.viewMode = NiceFileBrowserViewMode.list,
  this.multiSelect = false,
  this.selectedIds = const [],
  this.onSelectionChanged,
  this.onItemTap,
  this.onItemDoubleTap,
  this.onItemAction,
  this.showPath = true,
  this.currentPath,
  this.onPathChanged,
  this.showSearch = true,
  this.showToolbar = true,
  this.contextActions,
});