code: def create_widget(self):
          
          d = self.declaration
          if d.text:
              Toast.makeText(self.get_context(),
                             d.text, 1).then(self.on_make_toast)
              self.made_toast = True
          else:
              self.toast = Toast(self.get_context())
docs: Create the underlying widget.
  
          A toast is not a subclass of view, hence we don't set name as widget
          or children will try to use it as their parent (which crashes).