fromJS static method

ScriptCode fromJS(
  1. JSString value
)

Implementation

static ScriptCode fromJS(JSString value) {
  var dartValue = value.toDart;
  return values.firstWhere((e) => e.value == dartValue);
}