WxLinearBorderSide.fromAncestor constructor
WxLinearBorderSide.fromAncestor({
- WxBorderSide? side,
- double? size,
- double? alignment,
Defines one side of a WxLinearBorder.
The values of size
and alignment
must be between
0.0 and 1.0, and -1.0 and 1.0 respectively.
Implementation
WxLinearBorderSide.fromAncestor({
WxBorderSide? side,
this.size,
this.alignment,
}) : assert(size == null || size >= 0.0 && size <= 1.0),
super(
style: side?.style,
color: side?.color,
gradient: side?.gradient,
width: side?.width,
offset: side?.offset,
);