start method

Future<SpaceDTO?> start({
  1. String? accountAddress,
  2. Signer? signer,
  3. required String spaceId,
  4. String? livepeerApiKey,
  5. required dynamic progressHook(
    1. ProgressHookType
    ),
})

Implementation

Future<SpaceDTO?> start({
  String? accountAddress,
  Signer? signer,
  required String spaceId,
  String? livepeerApiKey,
  required dynamic Function(ProgressHookType) progressHook,
}) async {
  if (livepeerApiKey != null) {
    setLivePeerKey(livepeerApiKey);
  }

  final result = await start_(
    accountAddress: accountAddress,
    signer: signer,
    spaceId: spaceId,
    progressHook: progressHook,
    updateRoom: _updateLocalUserRoom,
  );

  log('start: result= $result');
  if (result != null) {
    data = result;
    notifyListeners();
    log('start: result=liveSpaceData ${result.liveSpaceData.toJson()}');
  }

  return result;
}