create abstract method

  1. @factory
Widget create({
  1. required BuildContext context,
  2. required List<BartMenuRoute> routes,
  3. required void onTap(
    1. int
    ),
  4. required int currentIndex,
})

Implementation

@factory
Widget create({
  required BuildContext context,
  required List<BartMenuRoute> routes,
  required void Function(int) onTap,
  required final int currentIndex,
});