box<T> method

Box<T> box<T>(
  1. String boxKey
)

Opens a box and returns an open box

Implementation

Box<T> box<T>(String boxKey) {

if(isOpen<T>(boxKey)){
  //Box already open
  return openBoxes[boxKey] as Box<T>;
}
throw 'Box not open';
  }