of<D extends RaylibStruct<D> > static method
Gets the StructType either by type D directly or by infering type from value.
Implementation
static StructType<D> of<D extends RaylibStruct<D>>([D? value]) {
final type = _types[D];
if (type == null) {
throw StateError('No StructType registered for $D.');
}
return type as StructType<D>;
}