ResourceDartBuilder class

Constructors

ResourceDartBuilder(String projectRootPath, String outputPath)

Properties

allImageList List<String>
convert the set to the list
read-only
dirList List<Directory>
all of the directory with yaml.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
imageSet Set<String>
the set is all file path,not exists directory
final
isPreview bool
read / write
isWatch bool
read / write
isWriting bool
final
logFile File
read-only
outputPath String
read / write
projectRootPath String
read / write
resourceFile File
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
watchMap Map<FileSystemEntity, StreamSubscription<FileSystemEvent>>
read / write

Methods

generateCode() → void
generate the dart code
generateImageFiles(List<String> paths) → void
scan the with path list
generateImageFileWithPath(String path, Set<String> imageSet, List<Directory> dirList, bool rootPath) → void
if path is a directory ,add the directory to dirList else add it to imageSet.
generateResourceDartFile() → void
getListFromYamlList(YamlList yamlList) List<String>
get the asset from yaml list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeAllWatches() → void
startWatch() Future<void>
watch all of path
stopWatch() → void
toString() String
Returns a string representation of this object.
inherited
writeText(Object text, {File file}) → void
write the default file is a log file in the .dart_tools/log.txt

Operators

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