merge static method
Creates a button theme that controls how descendant Buttons should look like, and merges in the current button theme, if any.
Implementation
static Widget merge({
Key? key,
required ButtonThemeData data,
required Widget child,
}) {
return Builder(builder: (BuildContext context) {
return ButtonTheme(
key: key,
data: _getInheritedButtonThemeData(context)?.merge(data) ?? data,
child: child,
);
});
}