code: def create_widget(self):
          
          d = self.declaration
          button_type = UIButton.UIButtonTypeSystem if d.flat else UIButton.UIButtonTypeRoundedRect
          self.widget = UIButton(buttonWithType=button_type)
docs: Create the toolkit widget for the proxy object.