MuscleIntensityMap constructor

const MuscleIntensityMap({
  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. Set<Muscle>? initialSelectedMuscles,
  8. Map<String, MuscleIntensity>? initialSelectedGroups,
  9. bool enableCrossfade = true,
  10. Duration crossfadeDuration = const Duration(milliseconds: 100),
  11. Color intensityColorBuilder(
    1. MuscleIntensity intensity
    )?,
  12. double strokeWidth = 1.0,
  13. StrokeCap? strokeCap,
  14. StrokeJoin? strokeJoin,
  15. bool showSkeleton = true,
  16. WidgetBuilder? loadingBuilder,
  17. Color? skeletonColor,
  18. Duration skeletonAnimationDuration = const Duration(milliseconds: 900),
  19. double skeletonOpacityBegin = 0.4,
  20. double skeletonOpacityEnd = 1.0,
  21. Curve skeletonCurve = Curves.easeInOut,
  22. 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);