merge static method
Widget
merge({
- Key? key,
- WxTextTileStyle? style,
- WxTextTileThemeData? data,
- required Widget child,
Creates an WxTextTileTheme that controls the style of descendant widgets, and merges in the current WxTextTileTheme, if any.
The style
and child
arguments must not be null.
Implementation
static Widget merge({
Key? key,
WxTextTileStyle? style,
WxTextTileThemeData? data,
required Widget child,
}) {
return Builder(
builder: (BuildContext context) {
final parent = WxTextTileTheme.of(context);
return WxTextTileTheme(
key: key,
data: parent.merge(data).copyWith(style: style),
child: child,
);
},
);
}