toEndGradientPosition function
Implementation
EndGradientPosition toEndGradientPosition(int? index) {
switch (index) {
case 0:
return EndGradientPosition.topLeft;
case 1:
return EndGradientPosition.topCenter;
case 2:
return EndGradientPosition.topRight;
case 3:
return EndGradientPosition.centerLeft;
case 4:
return EndGradientPosition.center;
case 5:
return EndGradientPosition.centerRight;
case 6:
return EndGradientPosition.bottomLeft;
case 7:
return EndGradientPosition.bottomCenter;
case 8:
return EndGradientPosition.bottomRight;
}
return EndGradientPosition.unknown;
}