getCustomObjectById function

Future<CubeCustomObject?> getCustomObjectById(
  1. String className,
  2. String id
)

Returns custom object with id

className - name of the class of custom objects which you want to get id - id of custom object which you want to get

Implementation

Future<CubeCustomObject?> getCustomObjectById(String className, String id) {
  return GetCustomObjectByIdQuery(className, id).perform();
}