AppGridView<T> constructor

const AppGridView<T>({
  1. Key? key,
  2. required List<T> items,
  3. required Widget itemBuilder(
    1. BuildContext,
    2. T
    ),
  4. ValueChanged<T>? onTap,
  5. T? selectedItem,
  6. int crossAxisCount = 2,
  7. Color? selectedColor,
  8. Color? unselectedColor,
  9. double borderRadius = 12,
  10. double borderWidth = 1,
  11. Color? borderColor,
  12. IconData iconBuilder(
    1. T
    )?,
})

Implementation

const AppGridView({
  super.key,
  required this.items,
  required this.itemBuilder,
  this.onTap,
  this.selectedItem,
  this.crossAxisCount = 2,
  this.selectedColor,
  this.unselectedColor,
  this.borderRadius = 12,
  this.borderWidth = 1,
  this.borderColor,
  this.iconBuilder,
});