eglGetDisplay method

Pointer<Void> eglGetDisplay([
  1. int? displayId
])

Implementation

Pointer<Void> eglGetDisplay([int? displayId]) {
  loadEGL(useAngle: _useAngle);
  final nativeCallResult = egl.eglGetDisplay(displayId ?? 0);

  if (nativeCallResult == nullptr) {
    throw EglException(
        'No display matching display ID [$displayId] was found.');
  }

  return nativeCallResult;
}