StyleRule constructor

const StyleRule(
  1. Map<String, Object?> styles, {
  2. Map<String, Object?> hover = const {},
  3. Map<String, Object?> focus = const {},
  4. Map<String, Object?> focusVisible = const {},
  5. Map<String, Object?> active = const {},
  6. Map<String, Object?> disabled = const {},
  7. Map<String, Object?> checked = const {},
  8. Map<String, Object?> selected = const {},
  9. Map<String, Object?> expanded = const {},
  10. Map<String, Object?> invalid = const {},
})

Creates a style rule with optional interaction state declarations.

Implementation

const StyleRule(
  this.styles, {
  this.hover = const {},
  this.focus = const {},
  this.focusVisible = const {},
  this.active = const {},
  this.disabled = const {},
  this.checked = const {},
  this.selected = const {},
  this.expanded = const {},
  this.invalid = const {},
}) : nestedRules = const {};