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