FilesystemPickerNewFolderContextAction class

Defines the action to create a new folder.

Inheritance

Constructors

FilesystemPickerNewFolderContextAction({Widget icon = const Icon(Icons.create_new_folder), String text = 'New folder', String? dialogTitle, String? dialogPrompt, String? dialogOkText, String? dialogCancelText, FilesystemPickerNewFolderMessageBuilder? alreadyExistsMessage, ThemeData? theme})
Creates an action definition.

Properties

action FilesystemPickerContextActionCallback?
The handler called for the action.
finalinherited
alreadyExistsMessage FilesystemPickerNewFolderMessageBuilder?
The interpolator of the error message string when the folder being created already exists. Default message: 'The folder with the name "<new folder name>" already exists. Please use another name.'
final
dialogCancelText String?
The text of the "Cancel" button in the dialog for creating a new folder.
final
dialogOkText String?
The text of the "OK" button in the dialog for creating a new folder.
final
dialogPrompt String?
Message in the dialog for creating a new folder.
final
dialogTitle String?
Title of the dialog for creating a new folder.
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget
Action icon.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Action name.
finalinherited
theme ThemeData?
The theme that is passed to the dialog.
final

Methods

call(BuildContext context, Directory path) Future<bool>
Called when the user tapped on a button or menu item of a contextual action.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited