reportDone method

Future<void> reportDone()

Implementation

Future<void> reportDone() async {
  final String? trackerId = await this.trackerId;

  if (trackerId == null) {
    throw Exception('trackerId must not be null');
  }

  await _channel.invokeMethod<void>('reportDone', <String, dynamic>{
    'trackerId': trackerId,
    'responseCode': this.responseCode,
    'responseHeaderFields': this.responseHeaderFields ?? <String, String>{},
    'error': this.error,
    'exception': this.exception
  });
}