Raylib constructor
Raylib({
- required String core,
- String? gui,
- RaylibTempBaseOptions? tempOptions,
- 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();
}