$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 $BoxDecoration.wrap(BoxDecoration(
    color: args[0]?.$value,
    //image: args[1]?.value as DecorationImage?,
    border: args[1]?.$value,
    //borderRadius: args[3]?.value as BorderRadius?,
    boxShadow: args[2]?.$value,
    //gradient: args[5]?.value as Gradient?,
    //backgroundBlendMode: args[6]?.value as BlendMode?,
    //shape: args[7]?.value as BoxShape?
  ));
}