ProfileHeader constructor

const ProfileHeader({
  1. Key? key,
  2. String? name,
  3. String? bio,
  4. String? avatarUrl,
  5. Widget? avatar,
  6. List<ProfileStat> stats = const <ProfileStat>[],
  7. VoidCallback? onEdit,
  8. VoidCallback? onFollow,
  9. bool followed = false,
  10. Gradient gradient = AppGradients.brand,
})

Implementation

const ProfileHeader({
  super.key,
  this.name,
  this.bio,
  this.avatarUrl,
  this.avatar,
  this.stats = const <ProfileStat>[],
  this.onEdit,
  this.onFollow,
  this.followed = false,
  this.gradient = AppGradients.brand,
});