SdlLibrary class
A manager class for the SDL library.
Be sure to call init before using any SDL functionality and to call dispose when you're done.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isInitialized ↔ bool
-
Whether the library has already been initialized.
getter/setter pair
Static Methods
-
clearError(
) → void - Clears the error from getError.
-
dispose(
) → void - Closes the library and stops the event loop.
-
getError(
) → String? - Gets the previous error since the last call to clearError, if any.
-
init(
{Duration eventLoopInterval = const Duration(milliseconds: 100)}) → bool - Initializes the SDL library and starts the event loop.