StyleSheet class

StyleSheet for visual styling properties

Constructors

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
const

Properties

accessibilityLabel String?
final
accessible bool?
final
backgroundColor Color?
final
backgroundGradient DCFGradient?
final
borderBottomLeftRadius → dynamic
final
borderBottomRightRadius → dynamic
final
borderColor Color?
final
borderRadius → dynamic
final
borderTopLeftRadius → dynamic
final
borderTopRightRadius → dynamic
final
borderWidth → dynamic
final
elevation → dynamic
final
hashCode int
The hash code for this object.
no setterinherited
hitSlop DCFHitSlop?
final
opacity double?
final
pointerEvents String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shadowColor Color?
final
shadowOffsetX → dynamic
final
shadowOffsetY → dynamic
final
shadowOpacity double?
final
shadowRadius → dynamic
final
testID String?
final

Methods

copyWith({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}) StyleSheet
Create a copy of this StyleSheet with certain properties modified
merge(StyleSheet other) StyleSheet
Create a new StyleSheet by merging this one with another
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert style properties to a map for serialization
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

isStyleProperty(String propName) bool
Helper method to check if a property is a style property

Constants

all → const List<String>
List of all style property names for easy identification