FileObject class

FileObject is used to add file data to DataSource which can be later used for referencing by Agent.

Example:

final packageFile = File('path-to-your-file');
fianl packageFileObject = FileDataObject.fromFile(packageFile)
Inheritance

Constructors

FileObject(File file, {bool includePath = false, String? relativeTo})

Properties

file File
File object that contains the reference of the content that will be used by the agent as a reference.
final
hashCode int
The hash code for this object.
no setterinherited
includePath bool
bool for specifying whether the file path should be saved as well or excluded from saving. By default, it is false
final
minCliVersion String
no setteroverride
relativeTo String?
Optional parameter to share the parent path of the file
final
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
process() Future<Map<String, dynamic>>
Internal method used by dash_agent to convert the shared DataSource to json format that can be sent on the web
override
toString() String
A string representation of this object.
inherited

Operators

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