tintValue function Null safety

int tintValue(
  1. int value,
  2. double factor
)

Implementation

int tintValue(int value, double factor) =>
    max(0, min((value + ((255 - value) * factor)).round(), 255));