import "fyne.io/fyne/v2"
  

Usage

type Requireable

  type Requireable interface {
	HasValue() bool

	// SetOnRequiredChanged is used to set the callback that will be triggered when the required state changes.
	// The function might be overwritten by a parent that cares about child validation (e.g. widget.Form).
	SetOnRequiredChanged(func(bool))
}
  

Requireable is implemented by any widgets that want to support the [Required] field of a [FormItem]

Since: 2.8