IndicatorLensOptics constructor

const IndicatorLensOptics({
  1. bool enabled = true,
  2. double contentDisplacement = -17.5,
  3. double contentBevel = 11.2,
  4. double backdropDisplacement = 9.0,
  5. double backdropBevel = 36.0,
  6. double ovalization = 0.5,
  7. double aberration = 2.7,
  8. double aberrationBand = 14.0,
})

Creates lens optics. Every value defaults to the measured native lens.

Implementation

const IndicatorLensOptics({
  this.enabled = true,
  this.contentDisplacement = -17.5,
  this.contentBevel = 11.2,
  this.backdropDisplacement = 9.0,
  this.backdropBevel = 36.0,
  this.ovalization = 0.5,
  this.aberration = 2.7,
  this.aberrationBand = 14.0,
})  : assert(contentBevel > 0, 'contentBevel must be positive'),
      assert(backdropBevel > 0, 'backdropBevel must be positive'),
      assert(ovalization >= 0.0 && ovalization <= 1.0,
          'ovalization must be in [0.0, 1.0]'),
      assert(aberration >= 0.0, 'aberration must be non-negative'),
      assert(aberrationBand > 0, 'aberrationBand must be positive');