onNext method

Future<R> onNext(
  1. R row,
  2. Middleware<R> nextMiddleware
)

Override this method and implement your custom logic inside it. After call await nextMiddleware.next(row) to run the next middleware in the chain.

Implementation

Future<R> onNext(R row, Middleware<R> nextMiddleware) async =>
    await nextMiddleware.next(row);