SectionHeader.fromText constructor
Creates a Section Header slide with just using the string for title. It uses Text with the TextTheme.displayMedium style.
You can always use the defaut constructor of SectionHeader for more customization.
Implementation
const SectionHeader.fromText({
required String title,
Widget? background,
super.key,
}) : _background = background,
title = null,
_titleText = title;