Back to Flutter Boost

onPush method

doc/api/boost_interceptor/BoostInterceptor/onPush.html

5.0.2589 B
Original Source

onPush method

voidonPush(

  1. BoostInterceptorOption option,
  2. PushInterceptorHandler handler

)

The callback will be executed before the push is initiated.

If you want to continue the push, call handler.next.

If you want to complete the push with some custom data, you can resolve a result object with handler.resolve.

Implementation

void onPush(BoostInterceptorOption option, PushInterceptorHandler handler) =>
    handler.next(option);