onNext method
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);