merge static method

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

Creates an icon theme that controls the properties of descendant widgets, and merges in the current icon theme, if any.

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,
      );
    },
  );
}