InitFlags class Null safety

Flags to pass to Sdl.init.

Constructors

InitFlags({bool timer = false, bool audio = false, bool video = false, bool joystick = false, bool haptic = false, bool gameController = false, bool events = false, bool sensor = false})
Create an instance.
const

Properties

audio bool
SDL_INIT_AUDIO.
final
events bool
SDL_INIT_EVENTS.
final
flags int
Get the flags as an integer.
read-only
gameController bool
SDL_INIT_GAMECONTROLLER.
final
haptic bool
SDL_INIT_HAPTIC.
final
hashCode int
The hash code for this object.
read-only, inherited
joystick bool
SDL_INIT_JOYSTICK.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sensor bool
SDL_INIT_SENSOR.
final
timer bool
SDL_INIT_TIMER.
final
video bool
SDL_INIT_VIDEO.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

everything → const InitFlags
Initialise all flags to true.
InitFlags(audio: true, events: true, gameController: true, haptic: true, joystick: true, sensor: true, timer: true, video: true)