lightenColor function
Implementation
Color lightenColor(Color color, [double amount = 0.2]) {
assert(amount >= 0 && amount <= 1, 'Amount must be between 0 and 1');
// Blend the given color with white by the given amount
return Color.lerp(color, Colors.white, amount) ?? color;
}