dispose method

  1. @override
  2. @DoNotAbbreviate()
void dispose()
override

Calls all registered onDispose callbacks and clears them.

Implementation

@override
@DoNotAbbreviate()
void dispose() {
  super.dispose();
  _lights.forEach(calloc.free);
  calloc.free(_lightInt8ValuePtr);
  calloc.free(_lightFloat3ValuePtr);
  calloc.free(_lightFloat4ValuePtr);
}