getExtension method

List<String> getExtension(
  1. String key
)

Implementation

List<String> getExtension(String key) {
  if (Platform.isMacOS || Platform.isWindows) {
    return getExtensionDesktop(key);
  }

  Pointer _v = glGetString(EXTENSIONS);

  String _vstr = _v.cast<Utf8>().toDartString();
  List<String> _extensions = _vstr.split(" ");

  return _extensions;
}