DefaultHeaderCard constructor
DefaultHeaderCard({})
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");
}
}