merge static method

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

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 MacosIconThemeData data,
  required Widget child,
}) {
  return Builder(
    builder: (BuildContext context) {
      return MacosIconTheme(
        key: key,
        data: _getInheritedIconThemeData(context).merge(data),
        child: child,
      );
    },
  );
}