Curve.fromString constructor

Curve.fromString(
  1. 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);
}