FolderModel class
Folder model containing information about directories
Constructors
- FolderModel({required int id, required String name, required String path, required String parentPath, required int dateCreated, required int dateModified, required int dateAccessed, required int totalSize, required int fileCount, required int directoryCount, required bool isHidden, required bool isReadOnly, required bool isSystem, required FolderType folderType, required StorageLocation storageLocation})
-
const
-
FolderModel.fromMap(Map<
String, dynamic> map) -
Create FolderModel from Map
factory
Properties
- dateAccessed → int
-
Date accessed timestamp
final
- dateCreated → int
-
Date created timestamp
final
- dateModified → int
-
Date modified timestamp
final
- directoryCount → int
-
Number of subdirectories in the folder
final
- fileCount → int
-
Number of files in the folder
final
- folderType → FolderType
-
Folder type category
final
- formattedSize → String
-
Get formatted size string
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
Unique identifier for the folder
final
- isHidden → bool
-
Whether the folder is hidden
final
- isReadOnly → bool
-
Whether the folder is read-only
final
- isSystem → bool
-
Whether the folder is a system folder
final
- name → String
-
Name of the folder
final
- parentPath → String
-
Parent folder path
final
- path → String
-
Full path of the folder
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storageLocation → StorageLocation
-
Storage location
final
- totalItemCount → int
-
Get total item count (files + directories)
no setter
- totalSize → int
-
Total size of folder contents in bytes
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Convert FolderModel to Map
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override