$new static method

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

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $OutlinedButton.wrap(OutlinedButton(
    key: args[0]?.$value,
    onPressed: args[1] == null
        ? null
        : (() => (args[1]! as EvalCallable).call(runtime, null, [])),
    onLongPress: args[2] == null
        ? null
        : (() => (args[2]! as EvalCallable).call(runtime, null, [])),
    onHover: args[3] == null
        ? null
        : ((p0) =>
            (args[3]! as EvalCallable).call(runtime, null, [$bool(p0)])),
    onFocusChange: args[4] == null
        ? null
        : ((p0) =>
            (args[4]! as EvalCallable).call(runtime, null, [$bool(p0)])),
    style: args[5]?.$value,
    focusNode: args[6]?.$value,
    autofocus: args[7]?.$value ?? false,
    clipBehavior: args[8]?.$value,
    statesController: args[9]?.$value,
    child: args[10]?.$value,
  ));
}