CupertinoSliverAppBarData constructor

CupertinoSliverAppBarData({
  1. Key? widgetKey,
  2. Widget? leading,
  3. bool? automaticallyImplyLeading,
  4. Color? backgroundColor,
  5. bool? stretch,
  6. Widget? title,
  7. bool automaticallyImplyTitle = true,
  8. bool alwaysShowMiddle = true,
  9. String? previousPageTitle,
  10. Widget? middle,
  11. Widget? trailing,
  12. Border? border = _kDefaultNavBarBorder,
  13. Brightness? brightness,
  14. EdgeInsetsDirectional? padding,
  15. bool transitionBetweenRoutes = true,
  16. 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.',
      );