NiceFileItem class

Represents a file or folder item

Constructors

NiceFileItem({required String id, required String name, required NiceFileType type, int? size, DateTime? modifiedDate, String? extension, String? path, List<NiceFileItem>? children, bool isExpanded = false, Map<String, dynamic>? metadata})
const

Properties

children List<NiceFileItem>?
final
extension String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
isExpanded bool
final
isFolder bool
no setter
metadata Map<String, dynamic>?
final
modifiedDate DateTime?
final
name String
final
path String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int?
final
type NiceFileType
final

Methods

copyWith({String? id, String? name, NiceFileType? type, int? size, DateTime? modifiedDate, String? extension, String? path, List<NiceFileItem>? children, bool? isExpanded, Map<String, dynamic>? metadata}) NiceFileItem
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