internalAddKeyedObject method Null safety

bool internalAddKeyedObject(
  1. KeyedObject object
)

Called by rive_core to add a KeyedObject to the animation. This should be @internal when it's supported.

Implementation

bool internalAddKeyedObject(KeyedObject object) {
  if (internalCheckAddKeyedObject(object)) {
    _keyedObjects[object.objectId] = object;
    return true;
  }
  return false;
}