$allOrNull static method

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

Wrapper for the ButtonStyleButton.allOrNull method

Implementation

static $Value? $allOrNull(
  Runtime runtime,
  $Value? target,
  List<$Value?> args,
) {
  final value = ButtonStyleButton.allOrNull(args[0]!.$value);
  return value == null ? const $null() : $WidgetStateProperty.wrap(value);
}