BaseDimension constructor

BaseDimension({
  1. required double mBaseHeight,
  2. required bool volHidden,
  3. required Set<SecondaryState> secondaryStateLi,
})

constructor

BaseDimension set _mBaseHeight compute value of _mVolumeHeight, _mSecondaryHeight, _mDisplayHeight

Implementation

BaseDimension({
  required double mBaseHeight,
  required bool volHidden,
  required Set<SecondaryState> secondaryStateLi,
}) {
  _mBaseHeight = mBaseHeight;
  _mVolumeHeight = volHidden != true ? _mBaseHeight * 0.2 : 0;
  _mSecondaryHeight = _mBaseHeight * 0.2;
  _mDisplayHeight = _mBaseHeight +
      _mVolumeHeight +
      (_mSecondaryHeight * secondaryStateLi.length);
}