copyWith method
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,
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,
);
}