InteractiveBodyWidget constructor

const InteractiveBodyWidget({
  1. Key? key,
  2. String? frontAsset,
  3. String? backAsset,
  4. dynamic onMuscleSelected(
    1. Muscle
    )?,
  5. VoidCallback? onSelectionCleared,
  6. Set<Muscle>? selectedMuscles,
  7. bool initialIsFront = true,
  8. Color? highlightColor,
  9. Color? baseColor,
  10. double selectedStrokeWidth = 2.0,
  11. double unselectedStrokeWidth = 1.0,
  12. bool enableSelection = true,
  13. BoxFit fit = BoxFit.contain,
  14. double hitTestPadding = 10.0,
  15. double? width,
  16. double? height,
  17. Alignment alignment = Alignment.center,
  18. bool showFlipButton = true,
  19. bool showClearButton = true,
  20. PreferredSizeWidget? appBar,
  21. Color? backgroundColor,
  22. Widget selectedMusclesHeader(
    1. Set<Muscle>
    )?,
})

Implementation

const InteractiveBodyWidget({
  super.key,
  this.frontAsset,
  this.backAsset,
  this.onMuscleSelected,
  this.onSelectionCleared,
  this.selectedMuscles,
  this.initialIsFront = true,
  this.highlightColor,
  this.baseColor,
  this.selectedStrokeWidth = 2.0,
  this.unselectedStrokeWidth = 1.0,
  this.enableSelection = true,
  this.fit = BoxFit.contain,
  this.hitTestPadding = 10.0,
  this.width,
  this.height,
  this.alignment = Alignment.center,
  this.showFlipButton = true,
  this.showClearButton = true,
  this.appBar,
  this.backgroundColor,
  this.selectedMusclesHeader,
});