THeader constructor

const THeader({
  1. Key? key,
  2. required String title,
  3. TextStyle? titleStyle,
  4. bool enableCenterTitle = false,
  5. List<Widget>? suffixAction,
  6. Color? backgroundColor,
  7. Color? iconColor,
  8. Color? bottomColor,
})

Implementation

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