PodFileList class
Widget for displaying a list of POD files and directories with animations.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- PodFileList
Constructors
-
PodFileList({Key? key, required List<
PodFileItem> items, void onDirectoryTap(PodFileItem item)?, void onFileTap(PodFileItem item)?, void onDelete(PodFileItem item)?, void onDownload(PodFileItem item)?, bool showDelete = true, bool canDelete(PodFileItem item)?, String? selectedFilePath}) -
const
Properties
- canDelete → bool Function(PodFileItem item)?
-
Function to check if an item can be deleted.
If null, all items can be deleted (when showDelete is true).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
PodFileItem> -
List of file items to display.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onDelete → void Function(PodFileItem item)?
-
Callback when delete is requested.
final
- onDirectoryTap → void Function(PodFileItem item)?
-
Callback when a directory is tapped.
final
- onDownload → void Function(PodFileItem item)?
-
Callback when download is requested.
final
- onFileTap → void Function(PodFileItem item)?
-
Callback when a file is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedFilePath → String?
-
Currently selected file path.
final
- showDelete → bool
-
Whether to show delete buttons.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< PodFileList> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited