Styles constructor
const
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.
Implementation
const factory Styles({
All? all,
// Box Styles
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,
// Flexbox Styles
FlexDirection? flexDirection,
FlexWrap? flexWrap,
JustifyContent? justifyContent,
AlignItems? alignItems,
AlignContent? alignContent,
// Grid Styles
GridTemplate? gridTemplate,
List<TrackSize>? autoRows,
List<TrackSize>? autoColumns,
JustifyItems? justifyItems,
Gap? gap,
// Item Styles
Flex? flex,
int? order,
AlignSelf? alignSelf,
JustifySelf? justifySelf,
GridPlacement? gridPlacement,
// List Styles
ListStyle? listStyle,
ImageStyle? listImage,
ListStylePosition? listPosition,
// Text Styles
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,
// Background Styles
Color? backgroundColor,
ImageStyle? backgroundImage,
BackgroundOrigin? backgroundOrigin,
BackgroundPosition? backgroundPosition,
BackgroundAttachment? backgroundAttachment,
BackgroundRepeat? backgroundRepeat,
BackgroundSize? backgroundSize,
BackgroundClip? backgroundClip,
// Raw Styles
Map<String, String>? raw,
}) = _Styles;