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. String? gridTemplateColumns,
  21. Position? position,
  22. Object? top,
  23. Object? right,
  24. Object? bottom,
  25. Object? left,
  26. int? zIndex,
  27. Object? overflow,
  28. Object? boxSizing,
  29. Object? scrollBehavior,
  30. Object? aspectRatio,
  31. Object? objectFit,
  32. Object? transform,
  33. Object? backdropFilter,
  34. Object? fontFamily,
  35. Object? fontSize,
  36. Object? fontWeight,
  37. Object? lineHeight,
  38. Object? color,
  39. TextAlign? textAlign,
  40. Object? textTransform,
  41. Object? textDecoration,
  42. Object? cursor,
  43. Object? resize,
  44. Object? background,
  45. Object? radius,
  46. Border? border,
  47. Border? borderTop,
  48. Border? borderRight,
  49. Border? borderBottom,
  50. Border? borderLeft,
  51. Object? shadow,
  52. double? opacity,
  53. Object? gradient,
  54. Object? transition,
  55. Object? animation,
  56. Object? willChange,
  57. DartStyle? hover,
  58. DartStyle? focus,
  59. DartStyle? focusVisible,
  60. DartStyle? active,
  61. DartStyle? disabled,
  62. DartStyle? checked,
  63. DartStyle? selected,
  64. DartStyle? expanded,
  65. DartStyle? invalid,
  66. DartStyle? sm,
  67. DartStyle? md,
  68. DartStyle? lg,
  69. 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.boxSizing,
  this.scrollBehavior,
  this.aspectRatio,
  this.objectFit,
  this.transform,
  this.backdropFilter,
  this.fontFamily,
  this.fontSize,
  this.fontWeight,
  this.lineHeight,
  this.color,
  this.textAlign,
  this.textTransform,
  this.textDecoration,
  this.cursor,
  this.resize,
  this.background,
  this.radius,
  this.border,
  this.borderTop,
  this.borderRight,
  this.borderBottom,
  this.borderLeft,
  this.shadow,
  this.opacity,
  this.gradient,
  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.sm,
  this.md,
  this.lg,
  this.xl,
});