initializeEngine method

Future<void> initializeEngine({
  1. required AgoraConnectionData agoraConnectionData,
})

Implementation

Future<void> initializeEngine(
    {required AgoraConnectionData agoraConnectionData}) async {
  value = value.copyWith(
    engine: await RtcEngine.createWithContext(
      RtcEngineContext(
        agoraConnectionData.appId,
        areaCode: agoraConnectionData.areaCode,
      ),
    ),
    connectionData: agoraConnectionData,
  );
}