MusclePickerMap constructor
const
MusclePickerMap({
- Key? key,
- required String map,
- required dynamic onChanged(),
- double? width,
- double? height,
- Color? strokeColor,
- Color? selectedColor,
- Map<
String, Color> ? muscleColors, - Color? dotColor,
- bool? actAsToggle,
- bool? isEditing = false,
- Set<
Muscle> ? initialSelectedMuscles, - List<
String> ? initialSelectedGroups, - bool enableCrossfade = true,
- Duration crossfadeDuration = const Duration(milliseconds: 100),
- double strokeWidth = 1.0,
- StrokeCap? strokeCap,
- StrokeJoin? strokeJoin,
- bool showSkeleton = true,
- WidgetBuilder? loadingBuilder,
- Color? skeletonColor,
- Duration skeletonAnimationDuration = const Duration(milliseconds: 900),
- double skeletonOpacityBegin = 0.4,
- double skeletonOpacityEnd = 1.0,
- Curve skeletonCurve = Curves.easeInOut,
- 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);