import '../google-analytics.dart';

class ErrorTracking{

  final GALogger logger;
  ErrorTracking(this.logger);

  log(String type, {String? error}){
    logger('errors', parameters: {
      'error_type' : type ?? 'unknown',
      'error' : error ?? 'unknown',
    });
  }

}