createEngineWithProfile static method

Future<void> createEngineWithProfile(
  1. dynamic profile
)

Implementation

static Future<void> createEngineWithProfile(dynamic profile) async {
  final appID = profile["appID"];
  const server = "wss://test.com";
  Profile engineProfile =
      Profile(appID: appID, server: server, scenario: profile['scenario']);

  ZegoFlutterEngine.createEngineWithProfile(engineProfile);
}