FilePicker constructor
FilePicker({
- required String directory,
- String? title,
- List<
String> allowedExtensions = const [], - bool fileAllowed = true,
- bool directoryAllowed = false,
- bool showHidden = false,
- bool showPermissions = true,
- bool showSize = true,
- int? width,
- int? height,
- bool showHelp = true,
- String selectLabel = 'Select',
- String openLabel = 'Open',
- String parentLabel = 'Up',
- String cancelLabel = 'Cancel',
- String exitLabel = 'Quit',
- ValueCmdCallback<
String> ? onSelected, - CmdCallback? onCancelled,
- CmdCallback? onExit,
- 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,
});