getTabController method

Widget? getTabController(
  1. dynamic child,
  2. Map? spec
)

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,
  );
}