EasyTabBar constructor
const
EasyTabBar({})
Implementation
const EasyTabBar({
super.key,
required this.tabs,
this.onTabChanged,
this.initialIndex = 0,
this.children,
}) :
// if children is not null then tabs length must be equal to children length
assert(children == null || tabs.length == children.length),
// initial index must be less than tabs length
assert(initialIndex < tabs.length);