Fyne API "binding.Item"
binding.Item
import "fyne.io/fyne/v2/data/binding"
Usage
type Item
type Item[T any] interface {
DataItem
Get() (T, error)
Set(T) error
}
Item supports binding any type T generically.
Since:
2.6
func NewItem
func NewItem[T any](comparator func(T, T) bool) Item[T]
NewItem returns a bindable value of type T that is managed internally.
Since:
2.6