magnification property Null safety

double magnification

The zoomed-in rate of the magnifier, if it is used.

The default value is 1.0, which will not change anything. If the value is > 1.0, the center item will be zoomed in by that rate, and it will also be rendered as flat, not cylindrical like the rest of the list. The item will be zoomed out if magnification < 1.0.

Must be positive.

Implementation

double get magnification => _magnification;
void magnification=(double value)

Implementation

set magnification(double value) {
  assert(value != null);
  assert(value > 0);
  if (value == _magnification)
    return;
  _magnification = value;
  markNeedsPaint();
}