ResourceDartBuilder class

Constructors

ResourceDartBuilder(String projectRootPath, String outputPath)

Properties

allImageList List<String>
convert the set to the list
no setter
dirList List<Directory>
all of the directory with yaml.
final
filter Filter?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageSet Set<String>
the set is all file path,not exists directory
final
isPreview bool
getter/setter pair
isWatch bool
getter/setter pair
isWriting bool
final
logFile File
no setter
outputPath String
latefinal
projectRootPath String
latefinal
resourceFile File
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
watchMap Map<FileSystemEntity, StreamSubscription<FileSystemEvent>?>
getter/setter pair

Methods

generateCode(String className) → 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(String className) → void
getListFromYamlList(YamlList yamlList) List<String>
get the asset from yaml list
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllWatches() → void
startWatch(String className) Future<void>
watch all of path
stopWatch() → void
toString() String
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