TeethCustomPaint constructor

TeethCustomPaint({
  1. required List<TeethModel> models,
  2. required BuildContext context,
  3. required DrawableRoot drawableRoot,
  4. required void onTap(
    1. String id,
    2. bool isSelected
    ),
  5. Color unSelectedColor = Colors.black,
  6. Color selectedColor = Colors.green,
  7. Color borderColor = Colors.black,
  8. double? textPaddingTop,
  9. double? textPaddingLeft,
  10. double borderWith = 1,
  11. TextStyle style = const TextStyle(color: Colors.black, fontSize: 10),
  12. bool showIndex = false,
})

Implementation

TeethCustomPaint({
  required this.models,
  required this.context,
  required this.drawableRoot,
  required this.onTap,
  this.unSelectedColor = Colors.black,
  this.selectedColor = Colors.green,
  this.borderColor = Colors.black,
  this.textPaddingTop,
  this.textPaddingLeft,
  this.borderWith = 1,
  this.style = const TextStyle(color: Colors.black, fontSize: 10),
  this.showIndex = false,
});