setLastData method

void setLastData(
  1. T? value
)

This is useful when manually hanlding async state and you want to keep track of the last successful data. You can use the lastData getter to retrieve the last successful data when in AsyncError or AsyncLoading state.

Implementation

void setLastData(T? value) {
  _oldData = value;
}