removeSpaceChild method

Future<void> removeSpaceChild(
  1. String roomId
)

Remove a child from this space by setting the via to an empty list.

Implementation

Future<void> removeSpaceChild(String roomId) => !isSpace
    ? throw Exception('Room is not a space!')
    : setSpaceChild(roomId, via: const []);