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, Widget? child, Key? key})
    : assert(colorFilter != null),
      super(key: key, child: child);