merge method Null safety
- {Key? key,
- required IconThemeData data,
- required Widget child}
Creates an icon theme that controls the properties of descendant widgets, and merges in the current icon theme, if any.
The data
and child
arguments must not be null.
Implementation
static Widget merge({
Key? key,
required IconThemeData data,
required Widget child,
}) {
return Builder(
builder: (BuildContext context) {
return IconTheme(
key: key,
data: _getInheritedIconThemeData(context).merge(data),
child: child,
);
},
);
}