merge method
Creates an icon theme that controls the color, opacity, and size 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,
);
},
);
}