$new static method

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

Wrapper for the SheetAction.new constructor

Implementation

static $Value? $new(Runtime runtime, $Value? thisValue, List<$Value?> args) {
  return $SheetAction.wrap(
    SheetAction(
      label: args[0]!.$value,
      textStyle: args[1]?.$value ?? const TextStyle(),
      key: args[2]?.$value,
      icon: args[3]?.$value,
      isDefaultAction: args[4]?.$value ?? false,
      isDestructiveAction: args[5]?.$value ?? false,
    ),
  );
}