$new static method

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

Wrapper for the TextEditingValue.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $TextEditingValue.wrap(
    TextEditingValue(
      text: args[0]?.$value ?? '',
      selection: args[1]?.$value ?? const TextSelection.collapsed(offset: -1),
      composing: args[2]?.$value ?? TextRange.empty,
    ),
  );
}