aspectRatio property

double aspectRatio

Implementation

double get aspectRatio => _getAttribute<double>(kAspectRatio, 0);
void aspectRatio=(double? x)

The aspect ratio of the device this zoom is for. It is rounded to the nearest 3 decimal places.

pass null to remove key from attributes

Implementation

set aspectRatio(double? x) => (x == null)
    ? _attributes.remove(kAspectRatio)
    : _attributes[kAspectRatio] = x;