$new static method

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

Wrapper for the TextSpan.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $TextSpan.wrap(
    TextSpan(
      text: args[0]?.$value,
      children: (args[1]?.$reified as List?)?.cast(),
      style: args[2]?.$value,
      semanticsLabel: args[3]?.$value,
      semanticsIdentifier: args[4]?.$value,
      locale: args[5]?.$value,
      spellOut: args[6]?.$value,
    ),
  );
}