errorWidget property

Widget? errorWidget

The widget used to replace the child when the button is in a error state. If this is null the default widget is:

Icon( Icons.error, color: Theme.of(context).errorColor, )

Implementation

Widget? get errorWidget;