THeader.search constructor

const THeader.search({
  1. Key? key,
  2. Color? backgroundColor,
  3. String? hintText,
  4. dynamic onSubmitted(
    1. String
    )?,
  5. dynamic onChanged(
    1. String
    )?,
  6. Widget? prefixAction,
  7. Color? iconColor,
  8. Color? bottomColor,
})

Implementation

const THeader.search({
  super.key,
  this.backgroundColor,
  this.hintText,
  this.onSubmitted,
  this.onChanged,
  this.prefixAction,
  this.iconColor,
  this.bottomColor,
})  : headerType = HeaderType.search,
      title = '',
      titleStyle = null,
      subtitle = null,
      subtitleStyle = null,
      suffixAction = null,
      enableCenterTitle = false,
      isBackButtonEnabled = true,
      leadingAvatar = null,
      icon = const Icon(Icons.arrow_back_ios, color: Colors.white);