DrivingSummarySessionSummaryListener constructor

DrivingSummarySessionSummaryListener({
  1. required void onDrivingSummaries(
    1. List<DrivingSummary> summaries
    ),
  2. required void onDrivingSummariesError(
    1. Error error
    ),
})

Implementation

factory DrivingSummarySessionSummaryListener(
    {required void Function(
            core.List<directions_driving_route.DrivingSummary> summaries)
        onDrivingSummaries,
    required void Function(runtime_error.Error error)
        onDrivingSummariesError}) {
  return DrivingSummarySessionSummaryListenerImpl(
    onDrivingSummaries: onDrivingSummaries,
    onDrivingSummariesError: onDrivingSummariesError,
  );
}