getAttrib method Null safety

VertexAttrib? getAttrib(
  1. String name
)

Implementation

VertexAttrib? getAttrib(String name) {
  for (var attrib in attribs) {
    if (attrib.name == name) {
      return attrib;
    }
  }
  return null;
}