build method

  1. @override
Widget build(
  1. BuildContext context,
  2. int index,
  3. bool active
)

Called when the tab item is build.

  • context BuildContext instance;
  • index tab index;
  • active tab state;

Implementation

@override
Widget build(BuildContext context, int index, bool active) {
  controller.appendConvexItem(index);
  return controller.buildConvexItem(context, index, active);
}