Bar constructor

const Bar({
  1. String? titleText,
  2. Component? title,
  3. String? subtitleText,
  4. Component? subtitle,
  5. List<Component>? leading,
  6. List<Component>? trailing,
  7. BarBackButtonMode backButton = BarBackButtonMode.auto,
  8. void onBack()?,
  9. bool transparent = false,
  10. bool centerTitle = false,
  11. double? height,
  12. EdgeInsets? padding,
  13. Key? key,
})

Implementation

const Bar({
  this.titleText,
  this.title,
  this.subtitleText,
  this.subtitle,
  this.leading,
  this.trailing,
  this.backButton = BarBackButtonMode.auto,
  this.onBack,
  this.transparent = false,
  this.centerTitle = false,
  this.height,
  this.padding,
  super.key,
});