RaylibBase constructor

RaylibBase({
  1. RaylibTempBaseOptions? tempOptions,
  2. Random? random,
})

Implementation

RaylibBase({
  RaylibTempBaseOptions? tempOptions,
  math.Random? random,
}) :
  tempOptions = tempOptions ?? .new(),
  random = random ?? .new()
{
  if (this.tempOptions.stringCount < 4) {
    throw StateError(
      "Raylib expects at least 4 preallocated String slots, got ${this.tempOptions.stringCount}",
    );
  }
}