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 use FileDataObject.fromFile to create FileObject
  • DirectoryFiles - Pass the data by providing the Directory object. You can use FileDataObject.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;