$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 $TextStyle.wrap(TextStyle(
    inherit: args[0]?.$value ?? true,
    color: args[1]?.$value,
    backgroundColor: args[2]?.$value,
    fontSize: args[3]?.$value,
    fontWeight: args[4]?.$value,
    fontStyle: args[5]?.$value,
    letterSpacing: args[6]?.$value,
    wordSpacing: args[7]?.$value,
    // todo textBaseline: args[8]?.$value,
    height: args[8]?.$value,
  ));
}