SmoothTopBar2 constructor

const SmoothTopBar2({
  1. required String title,
  2. required ProductType? productType,
  3. String? subTitle,
  4. PreferredSizeWidget? topWidget,
  5. SmoothLeadingAction? leadingAction,
  6. bool forceMultiLines = false,
  7. bool reducedHeightOnScroll = false,
  8. double elevation = 4.0,
  9. Color? elevationColor,
  10. bool elevationOnScroll = true,
  11. Color? foregroundColor,
  12. Color? backgroundColor,
  13. SmoothTopBar2Theme? theme,
  14. Key? key,
})

Implementation

const SmoothTopBar2({
  required this.title,
  required this.productType,
  this.subTitle,
  this.topWidget,
  this.leadingAction,
  this.forceMultiLines = false,
  this.reducedHeightOnScroll = false,
  this.elevation = 4.0,
  this.elevationColor,
  this.elevationOnScroll = true,
  this.foregroundColor,
  this.backgroundColor,
  this.theme,
  super.key,
}) : assert(title.length > 0),
     assert(forceMultiLines == false || subTitle == null);