VFS class abstract

Implementers

Constructors

VFS({String workingDirectory = "/", List<VFSComparator> comparators = const [VFSComparatorName()], List<VFSLayout> layouts = const [VFSLayoutList(), VFSLayoutGrid()]})

Properties

canGoUp bool
no setter
comparatorIndex int
no setter
comparators List<VFSComparator>
final
currentComparator VFSComparator
no setter
currentLayout VFSLayout
no setter
hashCode int
The hash code for this object.
no setterinherited
isComparatorReversed bool
no setter
layoutIndex int
no setter
layouts List<VFSLayout>
final
listen Stream<int>
no setter
root VFolder
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection BehaviorSubject<List<VEntity>>
final
workingDirectory String
getter/setter pair
workingVFolder BehaviorSubject<VFolder>
latefinal

Methods

buildComparatorMenuItems(BuildContext context) Iterable<MenuItem>
buildLayoutMenuItems(BuildContext context) Iterable<MenuItem>
checkWorkingDirectory() Future<bool>
defaultEntityMenuItems(BuildContext context, List<VEntity> entities) Iterable<MenuItem>
defaultFileMenuItems(BuildContext context, List<VFile> files) Iterable<MenuItem>
defaultFolderMenuItems(BuildContext context, List<VFolder> folders) Iterable<MenuItem>
delete(VEntity entity) Future<void>
deleteAll(List<VEntity> entities) Future<void>
deleteDialog(BuildContext context, List<VEntity> entities) Future<void>
dispose() → void
exists(String path) Future<bool>
expandSelection(Offset drift) Future<void>
findUnallocatedName(String path) Future<String>
getAllChildren(List<VEntity> roots) Stream<VEntity>
getChildren(VFolder folder) Stream<VEntity>
getEntity(String path) Future<VEntity?>
getEntityMenuItems(BuildContext context, List<VEntity> entities) Iterable<MenuItem>
getFileMenuItems(BuildContext context, List<VFile> files) Iterable<MenuItem>
getFolderMenuItems(BuildContext context, List<VFolder> folders) Iterable<MenuItem>
goUp() → void
insertDrop(BuildContext context, List<DropItem> files) Future<void>
invalidate([String? path]) → void
isSelected(VEntity ent) bool
mkdir(String path, {bool recursive = true, bool $recursing = false}) Future<VFolder>
mkdirDialog(BuildContext context) → void
move(VEntity entity, VFolder into, {bool $recursing = false}) Future<void>
moveInto(VFolder ent, VEntity dragged) Future<void>
moveSelection(Offset drift) Future<void>
moveUpOut(VEntity dragged) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDeleteEmptyFolder(VFolder folder) Future<void>
onDeleteFile(VFile file) Future<void>
onEntityMenuItems(BuildContext context, List<VEntity> entities) Iterable<MenuItem>
onExists(String path) Future<bool>
onFileMenuItems(BuildContext context, List<VFile> files) Iterable<MenuItem>
onFolderMenuItems(BuildContext context, List<VFolder> folders) Iterable<MenuItem>
onGetChildren(VFolder folder) Stream<VEntity>
onGetEntity(String path) Future<VEntity?>
onMakeDirectory(String path) Future<VFolder>
onMoveFile(VFile entity, String newPath) Future<void>
onReadFileStream(String path) Stream<List<int>>
onTick() Future<void>
onWatchDirectory(String path) Stream<bool>
onWriteFile(String path, Stream<List<int>> byteStream) Future<void>
openFolder(VFolder entity) → void
readFileBytes(String path) Stream<List<int>>
renameDialog(BuildContext context, VEntity entity) Future<void>
renameEntity(VEntity entity, String newName) Future<void>
selectAll() Future<void>
selectionWithFocus(VEntity focus) List<VEntity>
setComparator(VFSComparator comparator, {bool reversed = false}) → void
setComparatorIndex(int comparator, {bool reversed = false}) → void
setLayout(VFSLayout layout) → void
setLayoutIndex(int layout) → void
tap(BuildContext context, VEntity ent) → void
tapOpen(BuildContext context, VEntity ent) → void
tick() Future<void>
toString() String
A string representation of this object.
inherited
update() → void
watchDirectory(String path) Stream<bool>
watchTargetDirectory(String wd) → void
writeFileBytes(String path, List<int> bytes) Future<void>
writeFileStream(String path, Stream<List<int>> byteStream) Future<void>
writeFileText(String path, String textContent) Future<void>

Operators

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