slide method
Override this method to add slide (foreground) widget.
The widget returned by this method will be placed as foreground of that particular slide.
Implementation
@override
Widget slide(BuildContext context) {
return Center(
child: title ??
Text(
_titleText!,
style: Theme.of(context).textTheme.displayMedium,
),
);
}