toCss method
Implementation
String toCss() {
final stopColors = stops.map((stop) => stop.toCss()).join(', ');
return 'linear-gradient(${direction.cssValue}, $stopColors)';
}
String toCss() {
final stopColors = stops.map((stop) => stop.toCss()).join(', ');
return 'linear-gradient(${direction.cssValue}, $stopColors)';
}