HyperlensRootBundleAssetLoader class

用 rootBundle 读随包资产。

path 直接传 HyperlensAssets 的常量即可 —— 前缀里已带 packages/hyperlens/, rootBundle 认的就是这个形态。

Implemented types

Constructors

HyperlensRootBundleAssetLoader()
const

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

loadString(String path) → Future<String>
读一份文本资产。
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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