Style class

Inheritance

Constructors

Style.new({bool? visible, Alignment? alignment, Dimension? width, Dimension? height, EdgeInsets? margin, EdgeInsets? padding, double? opacity, BoxDecoration? foregroundDecoration, BoxDecoration? backgroundDecoration, List<ShapeShadow>? shadows, List<ShapeShadow>? insetShadows, MorphableShapeBorder? shapeBorder, SmoothMatrix4? transform, Alignment? transformAlignment, Alignment? childAlignment, DynamicTextStyle? textStyle, TextAlign? textAlign, Gradient? shaderGradient, ImageFilter? imageFilter, ImageFilter? backdropFilter, dynamic mouseCursor})
Style.fromJson(Map<String, dynamic> map)

Properties

alignment Alignment?
getter/setter pair
backdropFilter ImageFilter?
getter/setter pair
backgroundDecoration BoxDecoration?
getter/setter pair
childAlignment Alignment?
text related
getter/setter pair
foregroundDecoration BoxDecoration?
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
height ↔ Dimension?
getter/setter pair
imageFilter ImageFilter?
getter/setter pair
insetShadows List<ShapeShadow>?
getter/setter pair
margin EdgeInsets?
getter/setter pair
mouseCursor ↔ dynamic
getter/setter pair
opacity double?
getter/setter pair
padding EdgeInsets?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shaderGradient Gradient?
getter/setter pair
shadows List<ShapeShadow>?
getter/setter pair
shapeBorder ↔ MorphableShapeBorder?
getter/setter pair
textAlign TextAlign?
getter/setter pair
textStyle DynamicTextStyle?
getter/setter pair
transform SmoothMatrix4?
getter/setter pair
transformAlignment Alignment?
getter/setter pair
visible bool?
getter/setter pair
width ↔ Dimension?
getter/setter pair

Methods

copyWith({Alignment? alignment, Dimension? width, Dimension? height, EdgeInsets? margin, EdgeInsets? padding, bool? visible, double? opacity, BoxDecoration? backgroundDecoration, BoxDecoration? foregroundDecoration, List<ShapeShadow>? shadows, List<ShapeShadow>? insetShadows, MorphableShapeBorder? shapeBorder, SmoothMatrix4? transform, Alignment? transformAlignment, Alignment? childAlignment, DynamicTextStyle? textStyle, TextAlign? textAlign, Gradient? shaderGradient, ImageFilter? imageFilter, ImageFilter? backdropFilter, dynamic mouseCursor}) Style
override
merge(Style? style) Style
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveStyle(MediaQueryData data) Style
override
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
override