toCss method

String toCss()

Implementation

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