Returns the widget if it is not null, otherwise returns a default value.
Example:
Widget? myWidget; myWidget.validate(value: Text('Default'));
Widget validate({Widget value = const SizedBox()}) => this ?? value;