PresentationSlide class

A class representing a slide within a presentation.

This class encapsulates all the information required to render a slide in the presentation, including the widget to display and the number of animation steps involved in presenting the slide.

The slideWidget represents the content of the slide, animationSteps determines the number of times a slide can be clicked before switching to the next slide, and title provides an optional string that will be used as the slide's title in the menu.

To use this class, provide a slideWidget and optionally define the number of animationSteps and a title.

Constructors

PresentationSlide({required Widget slideWidget, int animationSteps = 1, String? title})
Constructs a PresentationSlide widget.
const

Properties

animationSteps int
Represents the current step of the animation in the presentation. It determines the number of times a slide can be clicked before switching to the next slide in the enum. By default, one click on a slide will directly switch to the next slide, sicne animationSteps is set to 1.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slideWidget Widget
slideWidget is the widget that will be used as slide
final
title String?
title is optional, since it will only be seen on the Menu (which can be opened using the M key btw). If no title is set it will default to Slide-{index} as its title.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited