Raylib constructor
Raylib(
- void dartMain(), {
- RaylibTempBaseOptions? tempOptions,
- Random? random,
Implementation
Raylib(void Function(Raylib) dartMain, {
super.tempOptions,
super.random,
}) {
if (_instance != null) {
throw StateError("There can only be one instance of a $runtimeType!");
}
_instance = this;
_dartMain = (() {
_init();
dartMain(this);
}).toJS;
}