<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def toggle_full_screen(self, *args):
 """ Toggles Application fullscreen state. :param \*args: Arguments. :type \*args: \* :return: Method success. :rtype: bool """


        LOGGER.debug("> Toggling FullScreen state.")

        if self.is_full_screen():
            self.setUnifiedTitleAndToolBarOnMac(True)
            self.set_visual_style(full_screen_style=False)
            self.showNormal()
            # TODO: Remove hack that ensure toolBar is repainted.
            platform.system() == "Darwin" and self.resize(self.size().width() + 1, self.size().height() + 1)
        else:
            self.setUnifiedTitleAndToolBarOnMac(False)
            self.set_visual_style(full_screen_style=True)
            self.showFullScreen()
        return True