HTAssetResourceContext class
- Inheritance
-
- Object
- HTResourceContext<
HTSource> - HTAssetResourceContext
Constructors
-
HTAssetResourceContext({String root = 'scripts/', List<
HTFilterConfig> includedFilter = const [], List<HTFilterConfig> excludedFilter = const [], List<String> binaryFileExtensions = const []}) - Create a HTAssetResourceContext with every script file placed under folder of root, which defaults to 'scripts/'
Properties
-
binaryFileExtensions
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
included
→ Set<
String> -
no setteroverride
- root → String
-
Create a
HTFileSystemContext
Create aHTOverlayContext
final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addResource(
String fullName, HTSource resource) → void -
override
-
checkExtension(
String ext) → HTResourceType -
inherited
-
contains(
String key) → bool -
override
-
getAbsolutePath(
{String key = '', String? dirName, String? fileName}) → String -
Get a unique absolute normalized path.
override
-
getResource(
String key, {String? from}) → HTSource -
Import a resource with a certain
key
, ignore those already importedoverride -
init(
) → Future< void> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeResource(
String fullName) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateResource(
String fullName, HTSource resource) → void -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited