AlertDialogAction<T>.neutral constructor
const
AlertDialogAction<T>.neutral ({
- Key? key,
- ValueGetter<
FutureOr< ? onAction,T> > - T? value,
- OnActionResult<
T> ? onResult = popResult, - bool autofocus = false,
- LiveData<
bool> ? enabled, - ButtonStyleBuilder buttonBuilder = buttonText,
Implementation
const AlertDialogAction.neutral({
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 = _buildNeutral;