css property

String get css

CSS declarations for this decoration.

Implementation

String get css => _css([
      if (color != null) 'background-color: ${color!.css}',
      if (borderRadius != null) 'border-radius: ${borderRadius!.css}',
      if (border != null) 'border: ${border!.css}',
      if (boxShadow.isNotEmpty)
        'box-shadow: ${boxShadow.map((shadow) => shadow.css).join(', ')}',
    ]);