getChildEntityNames method

  1. @JSExport()
JSPromise<JSArray<JSString>> getChildEntityNames(
  1. ThermionEntity entity,
  2. bool renderableOnly
)

Implementation

@JSExport()
JSPromise<JSArray<JSString>> getChildEntityNames(
        ThermionEntity entity, bool renderableOnly) =>
    viewer
        .getChildEntityNames(
          entity,
          renderableOnly: renderableOnly,
        )
        .then((v) => v.map((s) => s.toJS).toList().toJS)
        .toJS;