$asset static method
Instantiate a new $Image using Image.asset from args
Implementation
static $Value? $asset(Runtime runtime, $Value? target, List<$Value?> args) {
final name = args[0]!.$value;
runtime.assertPermission('asset', name);
return $Image.wrap(
Image.asset(
args[0]!.$value,
key: args[1]?.$value,
scale: args[2]?.$value,
width: args[3]?.$value,
height: args[4]?.$value,
color: args[5]?.$value,
fit: args[6]?.$value,
alignment: args[7]?.$value ?? Alignment.center,
filterQuality: args[8]?.$value ?? FilterQuality.low,
),
);
}