buildTitle method

Widget buildTitle(
  1. dynamic context
)

Implementation

Widget buildTitle(context) {
  final title = options.title ?? whatTitle();
  return Visibility(
    visible: title != null,
    child: Text(
      '$title',
      textAlign: options.titleAlignment ?? TextAlign.center,
      style: Theme.of(context).textTheme.headlineSmall?.copyWith(
                color: options.titleColor,
              ) ??
          TextStyle(
            color: options.titleColor,
          ),
    ),
  );
}