func (w *Widget) HasUnit() bool {
	if w != nil && w.Unit != nil {
		return true
	}

	return false
}
func (w *Widget) HasUnit() bool {
	if w != nil && w.Unit != nil {
		return true
	}

	return false
}
func ( w * Widget ) HasUnit ( ) bool { if w != nil && w . Unit != nil { return true } return false }
// HasUnit returns a boolean if a field has been set.
HasUnit returns a boolean if a field has been set .