StyleRule constructor
const
StyleRule(
- Map<
String, Object?> styles, { - Map<
String, Object?> hover = const {}, - Map<
String, Object?> focus = const {}, - Map<
String, Object?> focusVisible = const {}, - Map<
String, Object?> active = const {}, - Map<
String, Object?> disabled = const {}, - Map<
String, Object?> checked = const {}, - Map<
String, Object?> selected = const {}, - Map<
String, Object?> expanded = const {}, - 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 {};