props property

  1. @override
Map<String, String> get props

Converts box decoration attributes to a CSS style map.

Implementation

@override
Map<String, String> get props => {
  'display': ?display?.value,
  'background-color': ?backgroundColor?.value,
  'color': ?color?.value,
  'opacity': ?opacity?.toCleanString,
  ...?borderRadius?.props,
  ...?border?.props,
  ...?padding?.pProps,
  ...?margin?.mProps,
  ...?position?.props,
  ...?shadow?.props,
  ...?gradient?.props,
  if (alignment != null) ...{
    ...NakiAlignProps.mapAlignment(alignment!),
    'display': 'inline-flex',
  },
};