color method
Color
color({
- required String label,
- Color initialValue = Colors.white,
- ColorSpace initialColorSpace = ColorSpace.hex,
- 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,
),
)!;
}