pageTitle property Null safety

Widget? pageTitle

Implementation

Widget? get pageTitle {
  return (widget.pageTitle is String)
      ? AppBarTitle(widget.pageTitle as String)
      : widget.pageTitle as Widget?;
}