Styles class abstract
Represents a set of css styles.
- Mixed-in types
Constructors
-
Styles({All? all, String? content, Display? display, Position? position, ZIndex? zIndex, Unit? width, Unit? height, Unit? minWidth, Unit? minHeight, Unit? maxWidth, Unit? maxHeight, AspectRatio? aspectRatio, Padding? padding, Margin? margin, BoxSizing? boxSizing, Border? border, BorderRadius? radius, Outline? outline, double? opacity, Visibility? visibility, Overflow? overflow, Appearance? appearance, BoxShadow? shadow, Filter? filter, Filter? backdropFilter, Cursor? cursor, UserSelect? userSelect, PointerEvents? pointerEvents, Animation? animation, Transition? transition, Transform? transform, FlexDirection? flexDirection, FlexWrap? flexWrap, JustifyContent? justifyContent, AlignItems? alignItems, AlignContent? alignContent, GridTemplate? gridTemplate, List<
TrackSize> ? autoRows, List<TrackSize> ? autoColumns, JustifyItems? justifyItems, Gap? gap, Flex? flex, int? order, AlignSelf? alignSelf, JustifySelf? justifySelf, GridPlacement? gridPlacement, ListStyle? listStyle, ImageStyle? listImage, ListStylePosition? listPosition, Color? color, TextAlign? textAlign, FontFamily? fontFamily, Unit? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, TextDecoration? textDecoration, TextTransform? textTransform, Unit? textIndent, Unit? letterSpacing, Unit? wordSpacing, Unit? lineHeight, TextShadow? textShadow, TextOverflow? textOverflow, WhiteSpace? whiteSpace, Quotes? quotes, Color? backgroundColor, ImageStyle? backgroundImage, BackgroundOrigin? backgroundOrigin, BackgroundPosition? backgroundPosition, BackgroundAttachment? backgroundAttachment, BackgroundRepeat? backgroundRepeat, BackgroundSize? backgroundSize, BackgroundClip? backgroundClip, Map<String, String> ? raw}) -
Constructs a Styles instance with the given css properties.
constfactory
-
Styles.combine(List<
Styles> styles) -
Constructs a Styles instance by combining multiple other Styles instances.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
properties
→ Map<
String, String> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
combine(
Styles styles) → Styles -
Combines the current styles with another Styles instances.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
styles(
{All? all, String? content, Display? display, Position? position, ZIndex? zIndex, Unit? width, Unit? height, Unit? minWidth, Unit? minHeight, Unit? maxWidth, Unit? maxHeight, AspectRatio? aspectRatio, Padding? padding, Margin? margin, BoxSizing? boxSizing, Border? border, BorderRadius? radius, Outline? outline, double? opacity, Visibility? visibility, Overflow? overflow, Appearance? appearance, BoxShadow? shadow, Filter? filter, Filter? backdropFilter, Cursor? cursor, UserSelect? userSelect, PointerEvents? pointerEvents, Animation? animation, Transition? transition, Transform? transform, FlexDirection? flexDirection, FlexWrap? flexWrap, JustifyContent? justifyContent, AlignItems? alignItems, AlignContent? alignContent, GridTemplate? gridTemplate, List< TrackSize> ? autoRows, List<TrackSize> ? autoColumns, JustifyItems? justifyItems, Gap? gap, Flex? flex, int? order, AlignSelf? alignSelf, JustifySelf? justifySelf, GridPlacement? gridPlacement, ListStyle? listStyle, ImageStyle? listImage, ListStylePosition? listPosition, Color? color, TextAlign? textAlign, FontFamily? fontFamily, Unit? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, TextDecoration? textDecoration, TextTransform? textTransform, Unit? textIndent, Unit? letterSpacing, Unit? wordSpacing, Unit? lineHeight, TextShadow? textShadow, TextOverflow? textOverflow, WhiteSpace? whiteSpace, Quotes? quotes, Color? backgroundColor, ImageStyle? backgroundImage, BackgroundOrigin? backgroundOrigin, BackgroundPosition? backgroundPosition, BackgroundAttachment? backgroundAttachment, BackgroundRepeat? backgroundRepeat, BackgroundSize? backgroundSize, BackgroundClip? backgroundClip, Map<String, String> ? raw}) → Styles -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited