$file static method
$Value?
$file(
- Runtime runtime,
- $Value? target,
- List<$Value?> args
)
Implementation
static $Value? $file(Runtime runtime, $Value? target, List<$Value?> args) {
return $Image.wrap(Image.file(
args[0]?.$value,
key: args[1]?.$value,
scale: args[2]?.$value ?? 1.0,
frameBuilder: args[3] == null
? null
: ((p0, p1, p2, p3) =>
(args[3]! as EvalCallable).call(runtime, null, [
$BuildContext.wrap(p0),
$Widget.wrap(p1),
(p2 == null ? const $null() : $int(p2)),
$bool(p3)
])?.$reified),
errorBuilder: args[4] == null
? null
: ((p0, p1, p2) => (args[4]! as EvalCallable).call(runtime, null, [
$BuildContext.wrap(p0),
$Object(p1),
(p2 == null ? const $null() : $Object(p2))
])?.$reified),
semanticLabel: args[5]?.$value,
excludeFromSemantics: args[6]?.$value ?? false,
width: args[7]?.$value,
height: args[8]?.$value,
color: args[9]?.$value,
opacity: args[10]?.$value,
colorBlendMode: args[11]?.$value,
fit: args[12]?.$value,
alignment: args[13]?.$value ?? Alignment.center,
repeat: args[14]?.$value ?? ImageRepeat.noRepeat,
centerSlice: args[15]?.$value,
matchTextDirection: args[16]?.$value ?? false,
gaplessPlayback: args[17]?.$value ?? false,
isAntiAlias: args[18]?.$value ?? false,
filterQuality: args[19]?.$value ?? FilterQuality.medium,
cacheWidth: args[20]?.$value,
cacheHeight: args[21]?.$value,
));
}