TTSDKConfiguration.defaultConfigurationWithAppIDAndLicPath constructor

TTSDKConfiguration.defaultConfigurationWithAppIDAndLicPath({
  1. required String appID,
  2. required String licenseFilePath,
  3. required String channel,
})

Implementation

TTSDKConfiguration.defaultConfigurationWithAppIDAndLicPath(
    {required this.appID, required this.licenseFilePath, required this.channel}) {
  if (appID.isEmpty || licenseFilePath.isEmpty) {
    assert(false, 'appID and licenseFilePath must be valid');
  }
  if (Platform.isAndroid && channel.isEmpty) {
    assert(false, 'channel must be valid on Android platform');
  }
}