AlertDialogAction<T>.positive constructor

const AlertDialogAction<T>.positive({
  1. Key? key,
  2. ValueGetter<FutureOr<T>>? onAction,
  3. T? value,
  4. OnActionResult<T>? onResult = popResult,
  5. bool autofocus = false,
  6. LiveData<bool>? enabled,
  7. ButtonStyleBuilder buttonBuilder = buttonText,
})

Implementation

const AlertDialogAction.positive({
  super.key,
  this.onAction,
  this.value,
  this.onResult = popResult,
  this.autofocus = false,
  this.enabled,
  this.buttonBuilder = buttonText,
})  : assert(value is T || onAction != null, 'exactly one of [value, onAction] must be defines'),
      contentBuilder = _buildPositive;