Asset class
A class that provides utilities for handling assets without much awareness of their source location (on the network, on the terminal, in the asset folder).
Asset.text allows you to retrieve text from a text file on the network, terminal, or asset.
Asset.image allows you to retrieve image files on the network, terminal, or asset as ImageProvider.
アセットのソースの場所(ネットワーク上、端末上、アセットフォルダ内)をあまり意識せず取扱うためのユーティリティを提供するクラス。
Asset.textでネットワーク上や端末、アセット上のテキストファイルからテキストを取り出すことができます。
Asset.imageでネットワーク上や端末、アセット上の画像ファイルをImageProviderとして取り出すことができます。
- Available Extensions
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
-
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
Constants
- image → const ImageProviderBuilder
- Acquire builder to get image data.
- text → const TextProviderBuilder
- Get builder to get text data.