DartStyle constructor
const
DartStyle({
- EdgeInsets? padding,
- EdgeInsets? margin,
- Object? width,
- Object? height,
- Object? minWidth,
- Object? maxWidth,
- Object? minHeight,
- Object? maxHeight,
- Display? display,
- Object? gap,
- AlignItems? alignItems,
- Object? justifyItems,
- JustifyContent? justifyContent,
- Object? flex,
- FlexDirection? flexDirection,
- Object? flexWrap,
- Object? flexGrow,
- Object? flexShrink,
- Object? flexBasis,
- String? gridTemplateColumns,
- Position? position,
- Object? top,
- Object? right,
- Object? bottom,
- Object? left,
- int? zIndex,
- Object? overflow,
- Object? boxSizing,
- Object? scrollBehavior,
- Object? aspectRatio,
- Object? objectFit,
- Object? transform,
- Object? backdropFilter,
- Object? fontFamily,
- Object? fontSize,
- Object? fontWeight,
- Object? lineHeight,
- Object? color,
- TextAlign? textAlign,
- Object? textTransform,
- Object? textDecoration,
- Object? cursor,
- Object? resize,
- Object? background,
- Object? radius,
- Border? border,
- Border? borderTop,
- Border? borderRight,
- Border? borderBottom,
- Border? borderLeft,
- Object? shadow,
- double? opacity,
- Object? gradient,
- Object? transition,
- Object? animation,
- Object? willChange,
- DartStyle? hover,
- DartStyle? focus,
- DartStyle? focusVisible,
- DartStyle? active,
- DartStyle? disabled,
- DartStyle? checked,
- DartStyle? selected,
- DartStyle? expanded,
- DartStyle? invalid,
- DartStyle? sm,
- DartStyle? md,
- DartStyle? lg,
- 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,
});