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