color method

Color color({
  1. required String label,
  2. Color initialValue = Colors.white,
  3. ColorSpace initialColorSpace = ColorSpace.hex,
  4. String? description,
})

Creates a color picker that can be used to select a color.

Implementation

Color color({
  required String label,
  Color initialValue = Colors.white,
  ColorSpace initialColorSpace = ColorSpace.hex,
  String? description,
}) {
  return onKnobAdded(
    ColorKnob(
      label: label,
      initialValue: initialValue,
      initialColorSpace: initialColorSpace,
      description: description,
    ),
  )!;
}