ResourceIdentifier class

Annotates a static method as referencing a native resource.

Applies to static functions, top-level functions, or extension methods.

During compilation, all statically resolved calls to an annotated function are registered, and information about the annotated functions, the calls, and their arguments, is then made available to post-compile steps.

Annotations

Constructors

ResourceIdentifier([Object? metadata])
Creates a ResourceIdentifier instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
metadata Object?
Information which is stored together with the function call.
final
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