MuscleIntensityMap constructor
const
MuscleIntensityMap({
- Key? key,
- required String map,
- required dynamic onChanged(),
- double? width,
- double? height,
- Color? strokeColor,
- Set<
Muscle> ? initialSelectedMuscles, - Map<
String, MuscleIntensity> ? initialSelectedGroups, - bool enableCrossfade = true,
- Duration crossfadeDuration = const Duration(milliseconds: 100),
- Color intensityColorBuilder(
- MuscleIntensity intensity
- 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 MuscleIntensityMap({
Key? key,
required this.map,
required this.onChanged,
this.width,
this.height,
this.strokeColor,
this.initialSelectedMuscles,
this.initialSelectedGroups,
this.enableCrossfade = true,
this.crossfadeDuration = const Duration(milliseconds: 100),
this.intensityColorBuilder,
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);