ratio property Null safety

num ratio

Implementation

num get ratio => _ratio;
void ratio=(num value)

Implementation

set ratio(num value) {
  if (value < 0.0) value = 0.0;
  if (value > 1.0) value = 1.0;
  _ratio = value;
}