$new static method

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

Wrapper for the AlertDialogAction.new constructor

Implementation

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