alignmentDark property
Alignment
get
alignmentDark
Gets the alignment for the dark end of the gradient, matching the direction's origin.
Returns the appropriate Alignment for the starting point of the fade, ensuring correct positioning in GlassAntiFlicker widgets.
Implementation
Alignment get alignmentDark {
switch (this) {
case AntiFlickerDirection.top:
return Alignment.topCenter;
case AntiFlickerDirection.bottom:
return Alignment.bottomCenter;
case AntiFlickerDirection.left:
return Alignment.centerLeft;
case AntiFlickerDirection.right:
return Alignment.centerRight;
}
}