RaylibAppBase<R extends RaylibBase> class
abstract
Platform-agnostic app lifecycle interface for Raylib applications.
Implement this to define your app logic independently of the backend. Each backend provides its own RaylibAppBase subclass and runRaylib function that drives the lifecycle in a platform-appropriate way.
The expected call order is:
- init = set up your app state and call RaylibCoreDart.InitWindow
- loop = called every frame
- close = called when shouldClose returns
true; call RaylibCoreDart.CloseWindow here - dispose = release Dart-side resources
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
R rl) → void -
Called once after shouldClose returns
true. -
dispose(
R rl) → void - Called after close to release any remaining Dart-side resources.
-
init(
R rl) → void - Called once before the app loop starts.
-
loop(
R rl) → Future< void> -
Called once per frame while shouldClose returns
false. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldClose(
R rl) → bool -
Returns
truewhen the app loop should stop. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited