styles property

  1. @css
List<StyleRule> get styles

Implementation

@css
static List<StyleRule> get styles => [
  css('.code-block', [
    css('&').styles(position: Position.relative()),
    css('button').styles(
      position: Position.absolute(top: 1.rem, right: 1.rem),
      opacity: 0,
      color: Colors.white,
      width: 1.25.rem,
      height: 1.25.rem,
      zIndex: ZIndex(10),
    ),
    css('&:hover button').styles(opacity: 0.75),
  ]),
];