getCurve method
Implementation
Curve? getCurve(String? value) {
if (value == null || value.isEmpty) {
return null;
}
switch (value) {
case "linear":
return Curves.linear;
case "decelerate":
return Curves.decelerate;
case "fastLinearToSlowEaseIn":
return Curves.fastLinearToSlowEaseIn;
case "fastEaseInToSlowEaseOut":
return Curves.fastEaseInToSlowEaseOut;
case "ease":
return Curves.ease;
case "easeIn":
return Curves.easeIn;
case "easeInToLinear":
return Curves.easeInToLinear;
case "easeInSine":
return Curves.easeInSine;
case "easeInQuad":
return Curves.easeInQuad;
case "easeInCubic":
return Curves.easeInCubic;
case "easeInQuart":
return Curves.easeInQuart;
case "easeInQuint":
return Curves.easeInQuint;
case "easeInExpo":
return Curves.easeInExpo;
case "easeInCirc":
return Curves.easeInCirc;
case "easeInBack":
return Curves.easeInBack;
case "easeOut":
return Curves.easeOut;
case "linearToEaseOut":
return Curves.linearToEaseOut;
case "easeOutSine":
return Curves.easeOutSine;
case "easeOutQuad":
return Curves.easeOutQuad;
case "easeOutCubic":
return Curves.easeOutCubic;
case "easeOutQuart":
return Curves.easeOutQuart;
case "easeOutQuint":
return Curves.easeOutQuint;
case "easeOutExpo":
return Curves.easeOutExpo;
case "easeOutCirc":
return Curves.easeOutCirc;
case "easeOutBack":
return Curves.easeOutBack;
case "easeInOut":
return Curves.easeInOut;
case "easeInOutSine":
return Curves.easeInOutSine;
case "easeInOutQuad":
return Curves.easeInOutQuad;
case "easeInOutCubic":
return Curves.easeInOutCubic;
case "easeInOutCubicEmphasized":
return Curves.easeInOutCubicEmphasized;
case "easeInOutQuart":
return Curves.easeInOutQuart;
case "easeInOutQuint":
return Curves.easeInOutQuint;
case "easeInOutExpo":
return Curves.easeInOutExpo;
case "easeInOutCirc":
return Curves.easeInOutCirc;
case "easeInOutBack":
return Curves.easeInOutBack;
case "fastOutSlowIn":
return Curves.fastOutSlowIn;
case "slowMiddle":
return Curves.slowMiddle;
case "bounceIn":
return Curves.bounceIn;
case "bounceOut":
return Curves.bounceOut;
case "bounceInOut":
return Curves.bounceInOut;
case "elasticIn":
return Curves.elasticIn;
case "elasticOut":
return Curves.elasticOut;
case "elasticInOut":
return Curves.elasticInOut;
default:
return null;
}
}