trackErrorWithException method
Track an error specifying its source, with exception e and stackTrace.
Implementation
@override
Future trackErrorWithException(String source, dynamic e, dynamic stackTrace)
async
{
logger.logInfo((_isEnabled ? 'GoogleAnalytics' : 'Disabled-GoogleAnalytics') + ': trackErrorWithException: $source / $e / $stackTrace');
if (_isEnabled)
await track('Error', {'Message': e.toString(), 'StackTrace': stackTrace?.toString()});
}