operator [] method

dynamic operator [](
  1. int? i
)

Implementation

operator [](int? i) => (){
  if(webGL.contains(i)){
    return i;
  }
  else{
    return null;
  }
};