restrict method

GameTable restrict(
  1. Channel user
)

Implementation

GameTable restrict(Channel user) {
  final cells =
      table.cells.keys.map((e) => MapEntry(e, restrictCell(e, user)!));
  return table.copyWith.cellsBox(content: Map.fromEntries(cells));
}