FlexibleSpaceBar constructor

const FlexibleSpaceBar({Key key, Widget title, Widget background, bool centerTitle, CollapseMode collapseMode: CollapseMode.parallax })

Creates a flexible space bar.

Most commonly used in the AppBar.flexibleSpace field.

Implementation

const FlexibleSpaceBar({
  Key key,
  this.title,
  this.background,
  this.centerTitle,
  this.collapseMode = CollapseMode.parallax
}) : assert(collapseMode != null),
     super(key: key);