getTitleView method

Widget? getTitleView(
  1. BuildContext context
)

Implementation

Widget? getTitleView(BuildContext context) {
  final theme = TUITheme.of(context);
  TextStyle textStyle = theme.typography.heading5;

  return (style.style == TUIOverlayMobileStyleType.handle)
      ? null
      : Center(
          child: Text(
            style.title ?? "",
            style: textStyle,
          ),
        );
}