ofTable<T> method Null safety

TableDeclaration? ofTable<T>()

Implementation

TableDeclaration? ofTable<T>() {
  if (tables.containsKey(T)) {
    return tables[T]!;
  }
  return null;
}