RVAImage class
One responsive visual asset, backed by the shared RVA core.
Constructors
- RVAImage.open(Uint8List bytes)
-
Parse and integrity-validate a .rva package.
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
-
close(
) → void - Release the native handle.
-
describe(
) → String - Human-readable asset summary.
-
hasResource(
String reference) → bool - Whether a resource reference exists in the package.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
relativeFor(
String reference) → String - The path a reference resolves to, for MIME detection.
-
resolveJSON(
int width, int height) → String - Resolve the asset for a logical viewport, returning ResolvedScene JSON.
-
resource(
String reference) → Uint8List - Raw bytes for a declared resource id or raw path.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
lastError(
) → String - The current thread's last error message.
-
openSource(
String source) → Future< RVAImage> -
Open from a filesystem path, a
file://URL or anhttp(s)://URL. Convenience over the normative RVAImage.open (bytes). -
readSource(
String source) → Future< Uint8List> -
Read
.rvabytes from a path,file://orhttp(s)://URL.