IconTheme constructor Null safety

const IconTheme(
  1. {Key? key,
  2. required IconThemeData data,
  3. required Widget child}

Creates an icon theme that controls the color, opacity, and size of descendant widgets.

Both data and child arguments must not be null.


const IconTheme({
  required this.data,
  required super.child,
}) : assert(data != null),
     assert(child != null);