Raylib constructor

Raylib({
  1. required String core,
  2. String? gui,
  3. RaylibTempBaseOptions? tempOptions,
  4. Random? random,
})

Implementation

Raylib({
  required String core,
  String? gui,
  super.tempOptions,
  super.random,
}) {
  _dynCore = .open(core);
  _dynGui = gui != null ? .open(gui) : null;

  if (_instance != null) {
    throw StateError("There can only be one instance of a $runtimeType!");
  }

  _instance = this;

  _init();
}