DecoratorBoxState constructor

const DecoratorBoxState({
  1. Key? key,
  2. List<DecoratorEntry> suffixes = const [],
  3. List<DecoratorEntry> prefixes = const [],
  4. BorderType borderType = BorderType.outline,
  5. BorderRadius? borderRadius,
  6. BorderSide borderSide = const BorderSide(color: Colors.black),
  7. BorderSide? focusBorderSide = const BorderSide(color: Colors.red),
  8. Widget? header,
  9. Widget? footer,
  10. EdgeInsetsGeometry? margin,
  11. EdgeInsetsGeometry? padding,
  12. Color? fillColor,
  13. List<BoxShadow>? boxShadow,
  14. Gradient? gradient,
  15. BoxConstraints? constraints,
  16. bool hasFocusChangeBorder = true,
  17. required FocusNode? focusNode,
  18. required Widget? child,
})

Implementation

const DecoratorBoxState({
  super.key,
  this.suffixes = const [],
  this.prefixes = const [],
  this.borderType = BorderType.outline,
  this.borderRadius,
  this.borderSide = const BorderSide(color: Colors.black),
  this.focusBorderSide = const BorderSide(color: Colors.red),
  this.header,
  this.footer,
  this.margin,
  this.padding,
  this.fillColor,
  this.boxShadow,
  this.gradient,
  this.constraints,
  this.hasFocusChangeBorder = true,
  required this.focusNode,
  required this.child,
})  : assert(focusNode != null),
      builder = null;