SummaryHandler constructor

SummaryHandler({
  1. required void onMasstransitSummaries(
    1. List<MasstransitSummary> routes
    ),
  2. required void onMasstransitSummariesError(
    1. Error error
    ),
})

Implementation

factory SummaryHandler(
    {required void Function(
            core.List<transport_masstransit_summary.MasstransitSummary>
                routes)
        onMasstransitSummaries,
    required void Function(runtime_error.Error error)
        onMasstransitSummariesError}) {
  return SummaryHandlerImpl(
    onMasstransitSummaries: onMasstransitSummaries,
    onMasstransitSummariesError: onMasstransitSummariesError,
  );
}