FileObject class

name is the name of the file.

mode 'drwxr-xr-x'

modeBits '0755'

size '0'

isFile true if the file is a file, false if it is a directory.

isSymlink true if the file is a symlink, false if it is not a symlink.

mimetype 'text/plain'

createdAt '2020-01-01T00:00:00.000Z'

modifiedAt '2020-01-01T00:00:00.000Z'

Mixed in types
Annotations
  • @freezed

Constructors

FileObject({required String name, required String mode, required String modeBits, required int size, required bool isFile, required bool isSymlink, required String mimetype, required DateTime createdAt, required DateTime modifiedAt})
const
factory
FileObject.fromJson(JsonMap json)
factory

Properties

copyWith → $FileObjectCopyWith<FileObject>
no setterinherited
createdAt DateTime
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isFile bool
no setterinherited
no setterinherited
mimetype String
no setterinherited
mode String
no setterinherited
modeBits String
no setterinherited
modifiedAt DateTime
no setterinherited
name String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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