DefaultHeaderCard constructor

DefaultHeaderCard({
  1. Key? key,
  2. Color? backgroundColor,
  3. required Widget child,
  4. required String title,
  5. required String subtitle,
  6. required Widget? icon,
  7. int? currentIndex,
  8. dynamic onTabChange(
    1. int? value
    )?,
  9. bool? tabBarEnabled,
  10. List<ProfileDetailsTab>? tabs,
})

Implementation

DefaultHeaderCard({
  Key? key,
  this.backgroundColor,
  required this.child,
  required this.title,
  required this.subtitle,
  required this.icon,
  this.currentIndex,
  this.onTabChange,
  this.tabBarEnabled,
  this.tabs,
}) : super(key: key) {
  if (tabBarEnabled == true &&
      (tabs == null || currentIndex == null || onTabChange == null)) {
    throw Exception(
        "tabs enabled but onTabChange, currentIndex or tabs is null");
  }
}