failLastWrite method

void failLastWrite(
  1. String status, {
  2. bool outOfOrder = false,
})

Refuses the most recent unanswered write with the wire status, for example 'permission_denied' or 'datastale'. Nothing is pushed. Ordered as ackLastWrite, with the same outOfOrder.

Implementation

void failLastWrite(String status, {bool outOfOrder = false}) => _failWrite(
  _lastSentWrite(onDisconnect: false),
  status,
  'failLastWrite',
  outOfOrder: outOfOrder,
);