DartStyle constructor

const DartStyle({
  1. EdgeInsets? padding,
  2. EdgeInsets? margin,
  3. Object? width,
  4. Object? height,
  5. Object? minWidth,
  6. Object? maxWidth,
  7. Object? minHeight,
  8. Object? maxHeight,
  9. Display? display,
  10. Object? gap,
  11. AlignItems? alignItems,
  12. Object? justifyItems,
  13. JustifyContent? justifyContent,
  14. Object? flex,
  15. FlexDirection? flexDirection,
  16. Object? flexWrap,
  17. Object? flexGrow,
  18. Object? flexShrink,
  19. Object? flexBasis,
  20. Object? gridTemplateColumns,
  21. Position? position,
  22. Object? top,
  23. Object? right,
  24. Object? bottom,
  25. Object? left,
  26. int? zIndex,
  27. Object? overflow,
  28. Object? overflowX,
  29. Object? overflowY,
  30. Object? boxSizing,
  31. Object? scrollBehavior,
  32. Object? scrollbarDisplay,
  33. Object? aspectRatio,
  34. Object? objectFit,
  35. Object? transform,
  36. Object? backdropFilter,
  37. Object? maskImage,
  38. Object? fontFamily,
  39. Object? fontSize,
  40. Object? fontWeight,
  41. Object? lineHeight,
  42. Object? letterSpacing,
  43. Object? color,
  44. TextAlign? textAlign,
  45. Object? textTransform,
  46. Object? textDecoration,
  47. Object? textOverflow,
  48. Object? whiteSpace,
  49. Object? wordBreak,
  50. Object? overflowWrap,
  51. Object? cursor,
  52. Object? resize,
  53. Object? background,
  54. Object? radius,
  55. Border? border,
  56. Border? borderTop,
  57. Border? borderRight,
  58. Border? borderBottom,
  59. Border? borderLeft,
  60. Object? borderCollapse,
  61. Object? shadow,
  62. double? opacity,
  63. Object? gradient,
  64. Object? backgroundClip,
  65. Object? webkitBackgroundClip,
  66. Object? transition,
  67. Object? animation,
  68. Object? willChange,
  69. DartStyle? hover,
  70. DartStyle? focus,
  71. DartStyle? focusVisible,
  72. DartStyle? active,
  73. DartStyle? disabled,
  74. DartStyle? checked,
  75. DartStyle? selected,
  76. DartStyle? expanded,
  77. DartStyle? invalid,
  78. DartStyle? light,
  79. DartStyle? dark,
  80. DartStyle? sm,
  81. DartStyle? md,
  82. DartStyle? lg,
  83. DartStyle? xl,
})

Creates a typed style object.

Numeric size-like values compile to pixels unless a typed value such as SizeValue is provided.

Implementation

const DartStyle({
  this.padding,
  this.margin,
  this.width,
  this.height,
  this.minWidth,
  this.maxWidth,
  this.minHeight,
  this.maxHeight,
  this.display,
  this.gap,
  this.alignItems,
  this.justifyItems,
  this.justifyContent,
  this.flex,
  this.flexDirection,
  this.flexWrap,
  this.flexGrow,
  this.flexShrink,
  this.flexBasis,
  this.gridTemplateColumns,
  this.position,
  this.top,
  this.right,
  this.bottom,
  this.left,
  this.zIndex,
  this.overflow,
  this.overflowX,
  this.overflowY,
  this.boxSizing,
  this.scrollBehavior,
  this.scrollbarDisplay,
  this.aspectRatio,
  this.objectFit,
  this.transform,
  this.backdropFilter,
  this.maskImage,
  this.fontFamily,
  this.fontSize,
  this.fontWeight,
  this.lineHeight,
  this.letterSpacing,
  this.color,
  this.textAlign,
  this.textTransform,
  this.textDecoration,
  this.textOverflow,
  this.whiteSpace,
  this.wordBreak,
  this.overflowWrap,
  this.cursor,
  this.resize,
  this.background,
  this.radius,
  this.border,
  this.borderTop,
  this.borderRight,
  this.borderBottom,
  this.borderLeft,
  this.borderCollapse,
  this.shadow,
  this.opacity,
  this.gradient,
  this.backgroundClip,
  this.webkitBackgroundClip,
  this.transition,
  this.animation,
  this.willChange,
  this.hover,
  this.focus,
  this.focusVisible,
  this.active,
  this.disabled,
  this.checked,
  this.selected,
  this.expanded,
  this.invalid,
  this.light,
  this.dark,
  this.sm,
  this.md,
  this.lg,
  this.xl,
});