copyWith method

SunnySpacing copyWith({
  1. double? scaleFactor,
  2. double? spaceUnit,
  3. double? cardImageHeight,
  4. double? cardImageExpandedHeight,
  5. double? appBarHeight,
})

Implementation

SunnySpacing copyWith({
  double? scaleFactor,
  double? spaceUnit,
  double? cardImageHeight,
  double? cardImageExpandedHeight,
  double? appBarHeight,
}) {
  return new SunnySpacing.of(
    scaleFactor: scaleFactor ?? this.scaleFactor,
    cardImageHeight: cardImageHeight ?? this._cardImageHeight,
    cardImageExpandedHeight:
        cardImageExpandedHeight ?? this._cardImageExpandedHeight,
    spaceUnit: spaceUnit ?? this._spaceUnit,
    appBarHeight: appBarHeight ?? this._appBarHeight,
  );
}