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