asBlock method

WxSheetStyle asBlock({
  1. bool? tileWrap,
  2. CrossAxisAlignment? tileAlign,
  3. MainAxisAlignment? tileJustify,
  4. double? spacing,
})
inherited

Creates a copy of this WxSheetStyle but with the width replaced with double.infinity.

Implementation

WxSheetStyle asBlock({
  bool? tileWrap,
  CrossAxisAlignment? tileAlign,
  MainAxisAlignment? tileJustify,
  double? spacing,
}) {
  return copyWith(
    width: double.infinity,
    tileWrap: tileWrap ?? true,
    tileAlign: tileAlign,
    tileJustify: tileJustify,
    spacing: spacing,
  );
}