FilePicker constructor

FilePicker({
  1. required String directory,
  2. String? title,
  3. List<String> allowedExtensions = const [],
  4. bool fileAllowed = true,
  5. bool directoryAllowed = false,
  6. bool showHidden = false,
  7. bool showPermissions = true,
  8. bool showSize = true,
  9. int? width,
  10. int? height,
  11. bool showHelp = true,
  12. String selectLabel = 'Select',
  13. String openLabel = 'Open',
  14. String parentLabel = 'Up',
  15. String cancelLabel = 'Cancel',
  16. String exitLabel = 'Quit',
  17. ValueCmdCallback<String>? onSelected,
  18. CmdCallback? onCancelled,
  19. CmdCallback? onExit,
  20. Key? key,
})

Implementation

FilePicker({
  required this.directory,
  this.title,
  this.allowedExtensions = const [],
  this.fileAllowed = true,
  this.directoryAllowed = false,
  this.showHidden = false,
  this.showPermissions = true,
  this.showSize = true,
  this.width,
  this.height,
  this.showHelp = true,
  this.selectLabel = 'Select',
  this.openLabel = 'Open',
  this.parentLabel = 'Up',
  this.cancelLabel = 'Cancel',
  this.exitLabel = 'Quit',
  this.onSelected,
  this.onCancelled,
  this.onExit,
  super.key,
});