copyWith method

WxTileStyle copyWith({
  1. Axis? direction,
  2. EdgeInsetsGeometry? margin,
  3. double? spacing,
  4. bool? adaptiveSpacing,
  5. WxTileAlign? align,
  6. WxTileJustify? justify,
  7. bool? inline,
  8. bool? childWrap,
})

Creates a copy of this WxTileStyle but with the given fields replaced with the new values.

Implementation

WxTileStyle copyWith({
  Axis? direction,
  EdgeInsetsGeometry? margin,
  double? spacing,
  bool? adaptiveSpacing,
  WxTileAlign? align,
  WxTileJustify? justify,
  bool? inline,
  bool? childWrap,
}) {
  return WxTileStyle(
    direction: direction ?? this.direction,
    margin: margin ?? this.margin,
    spacing: spacing ?? this.spacing,
    adaptiveSpacing: adaptiveSpacing ?? this.adaptiveSpacing,
    align: align ?? this.align,
    justify: justify ?? this.justify,
    inline: inline ?? this.inline,
    childWrap: childWrap ?? this.childWrap,
  );
}