initialize method

Future<bool> initialize({
  1. required String licenseKey,
})

Initialize the DeepAR engine with your license key.

Must be called before any other method. Returns true if successful. Get your license key from https://developer.deepar.ai

Implementation

Future<bool> initialize({required String licenseKey}) async {
  final result = await _channel.invokeMethod<bool>(
    'initializeDeepAR',
    {'licenseKey': licenseKey},
  );
  _initialized = result ?? false;
  return _initialized;
}