CupertinoSliverAppBarData constructor
CupertinoSliverAppBarData({
- Key? widgetKey,
- Widget? leading,
- bool? automaticallyImplyLeading,
- Color? backgroundColor,
- bool? stretch,
- Widget? title,
- bool automaticallyImplyTitle = true,
- bool alwaysShowMiddle = true,
- String? previousPageTitle,
- Widget? middle,
- Widget? trailing,
- Border? border = _kDefaultNavBarBorder,
- Brightness? brightness,
- EdgeInsetsDirectional? padding,
- bool transitionBetweenRoutes = true,
- Object heroTag = _defaultHeroTag,
Implementation
CupertinoSliverAppBarData({
//Common
super.widgetKey,
super.leading,
super.automaticallyImplyLeading,
super.backgroundColor,
super.stretch,
super.title,
//Cupertino
// this.largeTitle,
this.automaticallyImplyTitle = true,
this.alwaysShowMiddle = true,
this.previousPageTitle,
this.middle,
this.trailing,
this.border = _kDefaultNavBarBorder,
this.brightness,
this.padding,
this.transitionBetweenRoutes = true,
this.heroTag = _defaultHeroTag,
}) : assert(
automaticallyImplyTitle == true || title != null,
'No title has been provided but automaticallyImplyTitle is also '
'false. Either provide a title or set automaticallyImplyTitle to '
'true.',
);