Curve.fromString constructor
Curve.fromString(
- String curveName
Implementation
Curve.fromString(String curveName) {
if (!CURVES.containsValue(curveName)) {
throw Exception('Unknown Curve NAME $curveName');
}
this.name = curveName;
this.id = CURVES.keys.firstWhere((k) => CURVES[k] == curveName);
}