GNCustomChip constructor

const GNCustomChip({
  1. Key? key,
  2. required List<String> chipLabels,
  3. required List<Widget> screens,
  4. Color? selectedColor,
  5. bool isChipCenter = true,
  6. Color? unselectedColor = Colors.black54,
  7. Color? backgroundColor = Colors.white,
  8. double? fontSize,
  9. dynamic onTap(
    1. int index
    )?,
  10. ScrollPhysics? physics,
})

Implementation

const GNCustomChip(
    {super.key,
    required this.chipLabels,
    required this.screens,
    this.selectedColor,
    this.isChipCenter = true,
    this.unselectedColor = Colors.black54,
    this.backgroundColor = Colors.white,
    this.fontSize,
    this.onTap, this.physics})
    : assert(
        chipLabels.length == screens.length,
        StringConst.CHIP_ERROR_MESSAGE,
      );