applyRatio method

double? applyRatio(
  1. double ratio
)

Implementation

double? applyRatio(double ratio) {
  final value = this;
  if (value == null) {
    return this;
  }
  return value * ratio;
}