NgAssetReader class abstract

Wraps an AssetReader to provide an ergonomic API for finding input files.

Constructors

NgAssetReader()
const
NgAssetReader.fromBuildStep(BuildStep buildStep)
const
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

canRead(String url) → Future<bool>
Returns whether url is readable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readText(String url) → Future<String>
Returns url's contents as a string.
resolveUrl(String baseUrl, String url) → String
Returns url relative to a baseUrl.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited