<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_widget_created(self, ref):
 """ Using Snackbar.make returns async so we have to initialize it later. """

        d = self.declaration
        self.widget = Snackbar(__id__=ref)
        self.init_widget()