ColorFiltered constructor Null safety

const ColorFiltered(
  1. {required ColorFilter colorFilter,
  2. Widget? child,
  3. Key? key}
)

Creates a widget that applies a ColorFilter to its child.

The colorFilter must not be null.

Implementation

const ColorFiltered({required this.colorFilter, super.child, super.key})
    : assert(colorFilter != null);