SunnySpacing.of constructor

const SunnySpacing.of({
  1. required double scaleFactor,
  2. required double spaceUnit,
  3. required double appBarHeight,
  4. required double cardImageHeight,
  5. required double cardImageExpandedHeight,
})

Implementation

const SunnySpacing.of({
  required this.scaleFactor,
  required double spaceUnit,
  required double appBarHeight,
  required double cardImageHeight,
  required double cardImageExpandedHeight,
})  : _pageSideMargin = spaceUnit * 2,
      _pageTopMargin = spaceUnit * 3,
      _cardSpacing = spaceUnit * 3,
      _spaceUnit = spaceUnit,
      _appBarHeight = appBarHeight,
      pageSideMargin = spaceUnit * 2 * scaleFactor,
      pageTopMargin = spaceUnit * 3 * scaleFactor,
      cardSpacing = spaceUnit * 3 * scaleFactor,
      spaceUnit = spaceUnit * scaleFactor,
      appBarHeight = appBarHeight * scaleFactor,
      _cardImageHeight = cardImageHeight,
      _cardImageExpandedHeight = cardImageExpandedHeight,
      cardImageHeight = cardImageHeight * scaleFactor,
      cardImageExpandedHeight = cardImageExpandedHeight * scaleFactor;