merge static method

Widget merge({
  1. Key? key,
  2. WxListTileStyle? style,
  3. WxListTileBuilder? wrapper,
  4. WxListTileThemeData? data,
  5. 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,
      );
    },
  );
}