CupertinoSliverNavigationBar constructor

const CupertinoSliverNavigationBar({Key key, Widget largeTitle, Widget leading, bool automaticallyImplyLeading: true, bool automaticallyImplyTitle: true, String previousPageTitle, Widget middle, Widget trailing, Border border: _kDefaultNavBarBorder, Color backgroundColor, EdgeInsetsDirectional padding, Color actionsForegroundColor, bool transitionBetweenRoutes: true, Object heroTag: _defaultHeroTag })

Creates a navigation bar for scrolling lists.

The largeTitle argument is required and must not be null.

Implementation

const CupertinoSliverNavigationBar({
  Key key,
  this.largeTitle,
  this.leading,
  this.automaticallyImplyLeading = true,
  this.automaticallyImplyTitle = true,
  this.previousPageTitle,
  this.middle,
  this.trailing,
  this.border = _kDefaultNavBarBorder,
  this.backgroundColor,
  this.padding,
  this.actionsForegroundColor,
  this.transitionBetweenRoutes = true,
  this.heroTag = _defaultHeroTag,
}) : assert(automaticallyImplyLeading != null),
     assert(automaticallyImplyTitle != null),
     assert(
       automaticallyImplyTitle == true || largeTitle != null,
       'No largeTitle has been provided but automaticallyImplyTitle is also '
       'false. Either provide a largeTitle or set automaticallyImplyTitle to '
       'true.'
     ),
     super(key: key);