$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 $FloatingActionButton.wrap(FloatingActionButton(
    onPressed: () => (args[0]! as EvalCallable).call(runtime, null, []),
    child: args[1]?.$value,
    tooltip: args[2]?.$value,
    foregroundColor: args[3]?.$value,
    backgroundColor: args[4]?.$value,
    focusColor: args[5]?.$value,
    hoverColor: args[6]?.$value,
    splashColor: args[7]?.$value,
    focusElevation: args[8]?.$value,
    hoverElevation: args[9]?.$value,
    elevation: args[10]?.$value,
    highlightElevation: args[11]?.$value,
    disabledElevation: args[12]?.$value,
    mini: args[13]?.$value ?? false,
    autofocus: args[14]?.$value ?? false,
    isExtended: args[15]?.$value ?? false,
  ));
}