StyledWidget constructor

const StyledWidget({
  1. Style? style,
  2. Key? key,
  3. bool inherit = false,
  4. required List<Type> orderOfModifiers,
})

Constructor for a styled widget.

Takes a Style object and an optional inherit flag.

Implementation

const StyledWidget({
  Style? style,
  super.key,
  this.inherit = false,
  required this.orderOfModifiers,
}) : style = style ?? const Style.empty();