canWrite method

bool canWrite(
  1. String table
)

Implementation

bool canWrite(String table) {
  if (tables == null) return true;
  for (final t in tables!) {
    if (t.name == table) return t.write;
  }
  return false;
}