PodFileItem class
Represents a file or directory item in the POD.
Constructors
- PodFileItem({required String name, required String path, required bool isDirectory, int? size, String? contentType, DateTime? lastModified})
-
const
- PodFileItem.directory({required String name, required String path})
-
Creates a directory item.
factory
- PodFileItem.file({required String name, required String path, int? size, String? contentType, DateTime? lastModified})
-
Creates a file item.
factory
Properties
- contentType → String?
-
Content type (MIME type, null for directories).
final
- extension → String?
-
Get file extension (lowercase, without dot).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDirectory → bool
-
Whether this item is a directory.
final
- isImageFile → bool
-
Check if this is an image file based on extension.
no setter
- isMediaFile → bool
-
Check if this is a media file based on extension.
no setter
- isTextFile → bool
-
Check if this is a text file based on extension.
no setter
- lastModified → DateTime?
-
Last modified date (if available).
final
- name → String
-
The name of the file or directory.
final
- path → String
-
The full path relative to the base directory.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
File size in bytes (null for directories).
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited