FileHandler class

A utility class for handling file operations.

The FileHandler class provides methods for interacting with files in a given directory. Specifically, it can retrieve all Dart files (.dart) in the directory and its subdirectories.

Example usage:

final dartFiles = FileHandler.getDartFiles(Directory('path/to/directory'));

Constructors

FileHandler.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

getDartFiles(Directory directory) List<File>
Retrieves all Dart files from a given directory.