$custom static method

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

Implementation

static $Value? $custom(Runtime runtime, $Value? target, List<$Value?> args) {
  return $ListView.wrap(ListView.custom(
    key: args[0]?.$value,
    scrollDirection: args[1]?.$value ?? Axis.vertical,
    reverse: args[2]?.$value ?? false,
    controller: args[3]?.$value,
    primary: args[4]?.$value,
    physics: args[5]?.$value,
    shrinkWrap: args[6]?.$value ?? false,
    padding: args[7]?.$value,
    itemExtent: args[8]?.$value,
    prototypeItem: args[9]?.$value,
    itemExtentBuilder: args[10] == null
        ? null
        : ((p0, p1) => (args[10]! as EvalCallable)
            .call(runtime, null, [$int(p0), $Object(p1)])?.$reified),
    childrenDelegate: args[11]?.$value,
    cacheExtent: args[12]?.$value,
    semanticChildCount: args[13]?.$value,
    dragStartBehavior: args[14]?.$value ?? DragStartBehavior.start,
    keyboardDismissBehavior: args[15]?.$value,
    restorationId: args[16]?.$value,
    clipBehavior: args[17]?.$value ?? Clip.hardEdge,
    hitTestBehavior: args[18]?.$value ?? HitTestBehavior.opaque,
  ));
}