()
| 125 | } |
| 126 | |
| 127 | func (fb *FuncButton) WidgetValue() any { |
| 128 | if !fb.reflectFunc.IsValid() { |
| 129 | return nil |
| 130 | } |
| 131 | return fb.reflectFunc.Interface() |
| 132 | } |
| 133 | |
| 134 | func (fb *FuncButton) SetWidgetValue(value any) error { |
| 135 | fb.SetFunc(reflectx.Underlying(reflect.ValueOf(value)).Interface()) |