BarColorPicker constructor

const BarColorPicker({
  1. Key? key,
  2. PickMode pickMode = PickMode.color,
  3. bool horizontal = true,
  4. bool showThumb = true,
  5. double length = 200,
  6. double borderWidth = 0.0,
  7. double cornerRadius = 0.0,
  8. double thumbRadius = 6,
  9. Color initialColor = const Color(0xffff0000),
  10. Color thumbColor = Colors.black,
  11. ValueChanged? onPositionChange,
  12. double? initPosition,
  13. required dynamic colorListener(
    1. int value
    ),
  14. required ProImageEditorConfigs configs,
})

Implementation

const BarColorPicker({
  super.key,
  this.pickMode = PickMode.color,
  this.horizontal = true,
  this.showThumb = true,
  this.length = 200,
  this.borderWidth = 0.0,
  this.cornerRadius = 0.0,
  this.thumbRadius = 6,
  this.initialColor = const Color(0xffff0000),
  this.thumbColor = Colors.black,
  this.onPositionChange,
  this.initPosition,
  required this.colorListener,
  required this.configs,
});