ColoredBoxModifier constructor

const ColoredBoxModifier({
  1. Key? key,
  2. Key? modifierKey,
  3. Widget? child,
  4. required Color color,
})

Creates a widget that paints its area with the specified Color.

The color parameter must not be null.

Implementation

const ColoredBoxModifier({
  super.key,
  super.modifierKey,
  super.child,
  required this.color,
});