onRejected method
Implementation
@protected
void onRejected() {
onRejectedCalled = true;
assert(rejectableState != null, 'If the state is rejectable, the touch ripple state must be defined.');
if (rejectableState != null) onRejectedCallBack?.call(rejectableState!);
}