StyleSheet constructor
const
StyleSheet({
- dynamic borderRadius,
- dynamic borderTopLeftRadius,
- dynamic borderTopRightRadius,
- dynamic borderBottomLeftRadius,
- dynamic borderBottomRightRadius,
- Color? borderColor,
- dynamic borderWidth,
- Color? backgroundColor,
- DCFGradient? backgroundGradient,
- double? opacity,
- Color? shadowColor,
- double? shadowOpacity,
- dynamic shadowRadius,
- dynamic shadowOffsetX,
- dynamic shadowOffsetY,
- dynamic elevation,
- DCFHitSlop? hitSlop,
- bool? accessible,
- String? accessibilityLabel,
- String? testID,
- 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,
});