MusclePickerMap constructor

const MusclePickerMap({
  1. Key? key,
  2. required String map,
  3. required dynamic onChanged(
    1. Set<Muscle> muscles
    ),
  4. double? width,
  5. double? height,
  6. Color? strokeColor,
  7. Color? selectedColor,
  8. Map<String, Color>? muscleColors,
  9. Color? dotColor,
  10. bool? actAsToggle,
  11. bool? isEditing = false,
  12. Set<Muscle>? initialSelectedMuscles,
  13. List<String>? initialSelectedGroups,
  14. bool enableCrossfade = true,
  15. Duration crossfadeDuration = const Duration(milliseconds: 100),
  16. double strokeWidth = 1.0,
  17. StrokeCap? strokeCap,
  18. StrokeJoin? strokeJoin,
  19. bool showSkeleton = true,
  20. WidgetBuilder? loadingBuilder,
  21. Color? skeletonColor,
  22. Duration skeletonAnimationDuration = const Duration(milliseconds: 900),
  23. double skeletonOpacityBegin = 0.4,
  24. double skeletonOpacityEnd = 1.0,
  25. Curve skeletonCurve = Curves.easeInOut,
  26. double skeletonBorderRadius = 16,
})

Implementation

const MusclePickerMap({
  Key? key,
  required this.map,
  required this.onChanged,
  this.width,
  this.height,
  this.strokeColor,
  this.selectedColor,
  this.muscleColors,
  this.dotColor,
  this.actAsToggle,
  this.isEditing = false,
  this.initialSelectedMuscles,
  this.initialSelectedGroups,
  this.enableCrossfade = true,
  this.crossfadeDuration = const Duration(milliseconds: 100),
  this.strokeWidth = 1.0,
  this.strokeCap,
  this.strokeJoin,
  this.showSkeleton = true,
  this.loadingBuilder,
  this.skeletonColor,
  this.skeletonAnimationDuration = const Duration(milliseconds: 900),
  this.skeletonOpacityBegin = 0.4,
  this.skeletonOpacityEnd = 1.0,
  this.skeletonCurve = Curves.easeInOut,
  this.skeletonBorderRadius = 16,
}) : super(key: key);