$icon static method

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

Implementation

static $Value? $icon(Runtime runtime, $Value? target, List<$Value?> args) {
  return $TextButton.wrap(TextButton.icon(
    key: args[0]?.$value,
    onPressed: args[1] == null
        ? null
        : (() => (args[1]! as EvalCallable).call(runtime, null, [])),
    onLongPress: args[2] == null
        ? null
        : (() => (args[2]! as EvalCallable).call(runtime, null, [])),
    onHover: args[3] == null
        ? null
        : ((p0) =>
            (args[3]! as EvalCallable).call(runtime, null, [$bool(p0)])),
    onFocusChange: args[4] == null
        ? null
        : ((p0) =>
            (args[4]! as EvalCallable).call(runtime, null, [$bool(p0)])),
    style: args[5]?.$value,
    focusNode: args[6]?.$value,
    autofocus: args[7]?.$value ?? false,
    clipBehavior: args[8]?.$value ?? Clip.none,
    statesController: args[9]?.$value,
    icon: args[10]?.$value,
    label: args[11]?.$value,
    iconAlignment: args[12]?.$value,
  ));
}