$new static method
$Value?
$new(
- Runtime runtime,
- $Value? target,
- List<$Value?> args
)
Implementation
static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
return $ListView.wrap(ListView(
key: args[0]?.$value as Key?,
scrollDirection: args[1]?.$value as Axis? ?? Axis.vertical,
reverse: args[2]?.$value as bool? ?? false,
controller: args[3]?.$value as ScrollController?,
primary: args[4]?.$value as bool?,
//physics: args[5]?.$reified as ScrollPhysics?,
shrinkWrap: args[5]?.$value as bool? ?? false,
padding: args[6]?.$value as EdgeInsetsGeometry?,
itemExtent: args[7]?.$value as double?,
addAutomaticKeepAlives: args[8]?.$value as bool? ?? true,
addRepaintBoundaries: args[9]?.$value as bool? ?? true,
addSemanticIndexes: args[10]?.$value as bool? ?? true,
cacheExtent: args[11]?.$value as double?,
children: (args[12]?.$reified as List?)?.cast() ?? const <Widget>[],
));
}