fileObjects property
List<FileDataObject>
get
fileObjects
List of FileDataObjects that can be used to pass data from files and directories.
Currently supported FileDataObject:
FileObject
- Pass the data by providing the File object. You can useFileDataObject.fromFile
to create FileObjectDirectoryFiles
- Pass the data by providing the Directory object. You can useFileDataObject.fromDirectory
to create DirectoryFiles
Example:
@override
List<SystemDataObject> get fileObjects => [
FileDataObject.fromDirectory(
Directory(
'directory_path_to_data_source'),
relativeTo:
'parent_directory_path'),
FileDataObject.fromFile(
File(your_file_path)
)
];
Implementation
List<FileDataObject> get fileObjects;