boolToValue method

int boolToValue(
  1. bool value
)

Convert a boolean to one of the members of SDL_bool.

Implementation

// ignore: avoid_positional_boolean_parameters
int boolToValue(final bool value) =>
    value ? SDL_bool.SDL_TRUE : SDL_bool.SDL_FALSE;