The Spacer class is used to create an adjustable, empty space. This empty space is used to manage the space between the widgets with the flex container. Spacer takes flex in the constructor to define the space.