$network static method

$Value? $network(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Instantiate a new $Image using Image.network from args

Implementation

static $Value? $network(Runtime runtime, $Value? target, List<$Value?> args) {
  final url = args[0]!.$value;
  runtime.assertPermission('network', url);
  return $Image.wrap(
    Image.network(
      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,
    ),
  );
}