CSS3 constructor
CSS3({
- Color? backgroundColor = Colors.transparent,
- Color? color,
- Map<
String, int?> ? counterIncrement, - Map<
String, int?> ? counterReset, - TextDirection? direction,
- Display? display,
- String? fontFamily,
- List<
String> ? fontFamilyFallback, - List<
FontFeature> ? fontFeatureSettings, - FontSize? fontSize,
- FontStyle? fontStyle,
- FontWeight? fontWeight,
- Height? height,
- LineHeight? lineHeight,
- double? letterSpacing,
- ListStyleImage? listStyleImage,
- ListStyleType? listStyleType,
- ListStylePosition? listStylePosition,
- EdgeInsets? padding,
- Marker? marker,
- Margins? margin,
- TextAlign? textAlign,
- TextDecoration? textDecoration,
- Color? textDecorationColor,
- TextDecorationStyle? textDecorationStyle,
- double? textDecorationThickness,
- List<
Shadow> ? textShadow, - VerticalAlign? verticalAlign,
- WhiteSpace? whiteSpace,
- Width? width,
- double? wordSpacing,
- String? before,
- String? after,
- Border? border,
- Alignment? alignment,
- Widget? markerContent,
- int? maxLines,
- TextOverflow? textOverflow,
- TextTransform? textTransform = TextTransform.none,
Implementation
CSS3({
this.backgroundColor = Colors.transparent,
this.color,
this.counterIncrement,
this.counterReset,
this.direction,
this.display,
this.fontFamily,
this.fontFamilyFallback,
this.fontFeatureSettings,
this.fontSize,
this.fontStyle,
this.fontWeight,
this.height,
this.lineHeight,
this.letterSpacing,
this.listStyleImage,
this.listStyleType,
this.listStylePosition,
this.padding,
this.marker,
this.margin,
this.textAlign,
this.textDecoration,
this.textDecorationColor,
this.textDecorationStyle,
this.textDecorationThickness,
this.textShadow,
this.verticalAlign,
this.whiteSpace,
this.width,
this.wordSpacing,
this.before,
this.after,
this.border,
this.alignment,
this.markerContent,
this.maxLines,
this.textOverflow,
this.textTransform = TextTransform.none,
}) {
if (alignment == null && (display == Display.block || display == Display.listItem)) {
alignment = Alignment.centerLeft;
}
}