JSCFunctionListEntry.defPropString constructor

JSCFunctionListEntry.defPropString(
  1. JSContext ctx,
  2. String name,
  3. String cstr,
  4. JSProp propFlags, {
  5. bool autoDispose = true,
})

Implementation

factory JSCFunctionListEntry.defPropString(
  JSContext ctx,
  String name,
  String cstr,
  JSProp propFlags, {
  bool autoDispose = true,
}) {
  return JSCFunctionListEntry._(
    ctx,
    name: name,
    propFlags: propFlags,
    defType: JSDef.PROP_STRING,
    magic: 0,
    union: JSCFuntionListEntryUnion(str: cstr),
    autoDispose: autoDispose,
  );
}