Resources class
Packages a file as a dart library so it can be expanded during the install process. This provide a way of shipping small resources in a dart application even if the app is compiled. NOTE: if you are publishing your dart app to pub-web.flutter-io.cn then there is a 10MB limit imposed by pub-web.flutter-io.cn.
If a resource path ends with the extension '.dcl_template' then the '.dcli_template' extension will be stripped from the filename when it is unpacked. e.g. my_class.dart.dcli_template -> my_class.dart
Constructors
Properties
- generatedRoot → String
-
directory where we save the packed resources.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- pathToRegistry → String
-
Path to the registry library
latefinal
- resourceRoot → String
-
Directory where will look for resources to pack
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getExcludedPaths(
SettingsYaml yaml, String path, int index) → List< String> -
isExcluded(
String path, List< String> excludes) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pack(
) → void - Packs the set of files located under resourceRoot Each resources is packed into a separate dart library and placed in the generatedRoot directory.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- pathToPackYaml → String
-
final
- projectRoot → String
-
no setter
-
scopeKeyProjectRoot
→ ScopeKey<
String> -
Inject this scope key to overload the projectRoot for unit testing.
final