$new static method

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

Instantiate a new $IconData from args

Implementation

static $Value? $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $IconData.wrap(IconData(
    args[0]!.$value,
    fontFamily: args[1]?.$value,
    fontPackage: args[2]?.$value,
    matchTextDirection: args[3]?.$value ?? false,
  ));
}