IconTheme constructor Null safety

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

Creates an icon theme that controls properties of descendant widgets.

Both data and child arguments must not be null.

Implementation

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