HeaderWithAnimation constructor

const HeaderWithAnimation({
  1. Key? key,
  2. required Color headerColor,
  3. TextStyle? titleStyle,
  4. TextStyle? userNameStyle,
  5. String? profileImage,
  6. bool isShowUserProfile = true,
  7. bool isShowUserName = true,
  8. required String title,
  9. String? userFirstName,
  10. String? userLastName,
})

Implementation

const HeaderWithAnimation({
  super.key,
  required this.headerColor,
  TextStyle? titleStyle,
  TextStyle? userNameStyle,
  this.profileImage,
  this.isShowUserProfile = true,
  this.isShowUserName = true,
  required this.title,
  this.userFirstName,
  this.userLastName,
}) : titleStyle = titleStyle ?? const TextStyle(color: Colors.white),
     userNameStyle = userNameStyle ?? const TextStyle(color: Colors.white);