aspectRatio property
double
aspectRatio
Implementation
double get aspectRatio => _getAttribute<double>(kAspectRatio, 0);
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;