eglGetDisplay function

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

Implementation

Pointer<Void> eglGetDisplay([Pointer<Void>? displayId]) {
  final nativeCallResult = _libEGL.eglGetDisplay(displayId ?? nullptr);

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

  return nativeCallResult;
}