RawFile constructor
The RawFile Widget enables you to generate your own Files right in the Widget tree. Here you can define your own file extension, the file path and the content.
constructor | |
---|---|
String | the name of the file(with the file extension) |
String | the content of the file |
path | changes the default path(in your pack) of the new file |
Example:
RawFile(
"predicate.json",
'{...}',
path: "/predicates",
)
Implementation
RawFile(
this.name,
this.content, {
this.path = '/',
this.inheritFolder = true,
});