CustomColorPicker typedef

CustomColorPicker = Widget Function(Color currentColor, void setColor(Color color))

A function type that defines a custom color picker widget.

The function takes two parameters:

  • currentColor: The currently selected Color.
  • color: A function that will be called with the selected Color.

Returns a Widget that allows the user to pick a color.

Implementation

typedef CustomColorPicker = Widget Function(
    Color currentColor, void Function(Color color) setColor);