initializeEngine method Null safety

void initializeEngine(
  1. {required AgoraConnectionData agoraConnectionData}
)

Implementation

void initializeEngine({required AgoraConnectionData agoraConnectionData}) async {
  value = value.copyWith(
    engine: await RtcEngine.createWithConfig(
      RtcEngineConfig(agoraConnectionData.appId, areaCode: agoraConnectionData.areaCode),
    ),
    connectionData: agoraConnectionData,
  );
}