getCode method

String? getCode()

Return the 4-letter ISO 15924 identifier associated with this script.

Implementation

String? getCode() {
  final String jscode1 = 'new ScriptInfo("$script").getCode()';
  final String result = ILibJS.instance.evaluate(jscode1).stringResult;
  if (result == null || result.isEmpty || result == 'null') {
    return null;
  }
  return result;
}