copyWith method

PosSizeModel copyWith({
  1. double? widthPortrait,
  2. WidthTypePortrait? widthTypePortrait,
  3. double? widthLandscape,
  4. WidthTypeLandscape? widthTypeLandscape,
  5. double? heightPortrait,
  6. HeightTypePortrait? heightTypePortrait,
  7. double? heightLandscape,
  8. HeightTypeLandscape? heightTypeLandscape,
  9. PortraitFitType? fitPortrait,
  10. LandscapeFitType? fitLandscape,
  11. PortraitAlignType? alignTypePortrait,
  12. LandscapeAlignType? alignTypeLandscape,
  13. ClipType? clip,
})

Implementation

PosSizeModel copyWith({
  double? widthPortrait,
  WidthTypePortrait? widthTypePortrait,
  double? widthLandscape,
  WidthTypeLandscape? widthTypeLandscape,
  double? heightPortrait,
  HeightTypePortrait? heightTypePortrait,
  double? heightLandscape,
  HeightTypeLandscape? heightTypeLandscape,
  PortraitFitType? fitPortrait,
  LandscapeFitType? fitLandscape,
  PortraitAlignType? alignTypePortrait,
  LandscapeAlignType? alignTypeLandscape,
  ClipType? clip,
}) {
  return PosSizeModel(
    widthPortrait: widthPortrait ?? this.widthPortrait,
    widthTypePortrait: widthTypePortrait ?? this.widthTypePortrait,
    widthLandscape: widthLandscape ?? this.widthLandscape,
    widthTypeLandscape: widthTypeLandscape ?? this.widthTypeLandscape,
    heightPortrait: heightPortrait ?? this.heightPortrait,
    heightTypePortrait: heightTypePortrait ?? this.heightTypePortrait,
    heightLandscape: heightLandscape ?? this.heightLandscape,
    heightTypeLandscape: heightTypeLandscape ?? this.heightTypeLandscape,
    fitPortrait: fitPortrait ?? this.fitPortrait,
    fitLandscape: fitLandscape ?? this.fitLandscape,
    alignTypePortrait: alignTypePortrait ?? this.alignTypePortrait,
    alignTypeLandscape: alignTypeLandscape ?? this.alignTypeLandscape,
    clip: clip ?? this.clip,
  );
}