getTabController method
Implementation
Widget? getTabController(dynamic child, Map? spec) {
if (child == null || spec == null || spec.isEmpty) {
return child;
}
return DefaultTabController(
length: parseInt(spec["length"]),
initialIndex: parseInt(spec["initialIndex"]),
child: child,
);
}