ColorArithmetic typedef Null safety

ColorArithmetic = Color Function(Color color, double factor)

A ColorArithmetic is a function that returns a Color after accepting and considering a Color and an double factor.

The default ColorArithmetic function for FooShadedSteps is Shades.withWhite, where a positive value lightens the color and negative values darken it.

Implementation

typedef ColorArithmetic = Color Function(Color color, double factor);