getExtension method

Object? getExtension(
  1. String key
)

Implementation

Object? getExtension(String key) {
  startCheck('getExtension');
  if (Platform.isMacOS) {
    return getExtensionMacos(key);
  }
  Pointer _v = gl.glGetString(WebGL.EXTENSIONS);
  checkError('getExtension');
  String _vstr = _v.cast<Utf8>().toDartString();
  List<String> _extensions = _vstr.split(" ");
  // calloc.free(_v);
  return _extensions;
}