StyleSheet constructor

const StyleSheet({
  1. dynamic borderRadius,
  2. dynamic borderTopLeftRadius,
  3. dynamic borderTopRightRadius,
  4. dynamic borderBottomLeftRadius,
  5. dynamic borderBottomRightRadius,
  6. Color? borderColor,
  7. dynamic borderWidth,
  8. Color? backgroundColor,
  9. DCFGradient? backgroundGradient,
  10. double? opacity,
  11. Color? shadowColor,
  12. double? shadowOpacity,
  13. dynamic shadowRadius,
  14. dynamic shadowOffsetX,
  15. dynamic shadowOffsetY,
  16. dynamic elevation,
  17. DCFHitSlop? hitSlop,
  18. bool? accessible,
  19. String? accessibilityLabel,
  20. String? testID,
  21. String? pointerEvents,
})

Create a style sheet with visual styling properties

Implementation

const StyleSheet({
  this.borderRadius,
  this.borderTopLeftRadius,
  this.borderTopRightRadius,
  this.borderBottomLeftRadius,
  this.borderBottomRightRadius,
  this.borderColor, // Removed default value to allow adaptive theming
  this.borderWidth,
  this.backgroundColor,
  this.backgroundGradient,
  this.opacity,
  this.shadowColor, // Removed default value to allow adaptive theming
  this.shadowOpacity,
  this.shadowRadius,
  this.shadowOffsetX,
  this.shadowOffsetY,
  this.elevation,
  this.hitSlop,
  this.accessible,
  this.accessibilityLabel,
  this.testID,
  this.pointerEvents,
});