merge static method

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

Creates a button theme that controls how descendant InfoBars should look like, and merges in the current toggle button theme, if any.

Implementation

static Widget merge({
  Key? key,
  required InfoBarThemeData data,
  required Widget child,
}) {
  return Builder(builder: (BuildContext context) {
    return InfoBarTheme(
      key: key,
      data: _getInheritedThemeData(context).merge(data),
      child: child,
    );
  });
}