ColorButtonBuilder typedef

ColorButtonBuilder = Widget Function(BuildContext, Color?)

Signature of callbacks the returns a Widget from a BuildContext and a Color (null color to use the default color of the text - copes with dark mode).

Implementation

typedef ColorButtonBuilder = Widget Function(BuildContext, Color?);