Styles constructor

const Styles({
  1. All? all,
  2. String? content,
  3. Display? display,
  4. Position? position,
  5. ZIndex? zIndex,
  6. Unit? width,
  7. Unit? height,
  8. Unit? minWidth,
  9. Unit? minHeight,
  10. Unit? maxWidth,
  11. Unit? maxHeight,
  12. AspectRatio? aspectRatio,
  13. Padding? padding,
  14. Margin? margin,
  15. BoxSizing? boxSizing,
  16. Border? border,
  17. BorderRadius? radius,
  18. Outline? outline,
  19. double? opacity,
  20. Visibility? visibility,
  21. Overflow? overflow,
  22. Appearance? appearance,
  23. BoxShadow? shadow,
  24. Filter? filter,
  25. Filter? backdropFilter,
  26. Cursor? cursor,
  27. UserSelect? userSelect,
  28. PointerEvents? pointerEvents,
  29. Animation? animation,
  30. Transition? transition,
  31. Transform? transform,
  32. FlexDirection? flexDirection,
  33. FlexWrap? flexWrap,
  34. JustifyContent? justifyContent,
  35. AlignItems? alignItems,
  36. AlignContent? alignContent,
  37. GridTemplate? gridTemplate,
  38. List<TrackSize>? autoRows,
  39. List<TrackSize>? autoColumns,
  40. JustifyItems? justifyItems,
  41. Gap? gap,
  42. Flex? flex,
  43. int? order,
  44. AlignSelf? alignSelf,
  45. JustifySelf? justifySelf,
  46. GridPlacement? gridPlacement,
  47. ListStyle? listStyle,
  48. ImageStyle? listImage,
  49. ListStylePosition? listPosition,
  50. Color? color,
  51. TextAlign? textAlign,
  52. FontFamily? fontFamily,
  53. Unit? fontSize,
  54. FontWeight? fontWeight,
  55. FontStyle? fontStyle,
  56. TextDecoration? textDecoration,
  57. TextTransform? textTransform,
  58. Unit? textIndent,
  59. Unit? letterSpacing,
  60. Unit? wordSpacing,
  61. Unit? lineHeight,
  62. TextShadow? textShadow,
  63. TextOverflow? textOverflow,
  64. WhiteSpace? whiteSpace,
  65. Quotes? quotes,
  66. Color? backgroundColor,
  67. ImageStyle? backgroundImage,
  68. BackgroundOrigin? backgroundOrigin,
  69. BackgroundPosition? backgroundPosition,
  70. BackgroundAttachment? backgroundAttachment,
  71. BackgroundRepeat? backgroundRepeat,
  72. BackgroundSize? backgroundSize,
  73. BackgroundClip? backgroundClip,
  74. 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;