initializeData method

Future<SpaceData?> initializeData({
  1. required String spaceId,
})

Implementation

Future<SpaceData?> initializeData({
  required String spaceId,
}) async {
  final result = await initializeSpace(spaceId: spaceId);
  if (result != null) {
    data = result;
    notifyListeners();
    return result;
  } else {
    throw Exception('Invalid Space id');
  }
}