setToHasData method
void
setToHasData(
- dynamic data, {
- SideEffects<
T> ? sideEffects, - bool shouldOverrideDefaultSideEffects(
- SnapState<
T>
- SnapState<
- StateInterceptor<
T> ? stateInterceptor,
override
Set the state to the data status
Implementation
@override
void setToHasData(
dynamic data, {
SideEffects<T>? sideEffects,
bool Function(SnapState<T>)? shouldOverrideDefaultSideEffects,
StateInterceptor<T>? stateInterceptor,
}) {
super.setToHasData(
data,
sideEffects: sideEffects,
shouldOverrideDefaultSideEffects: shouldOverrideDefaultSideEffects,
stateInterceptor: stateInterceptor,
);
if (_snapState.hasData || _snapState.isIdle) {
undoRedoPersistState?.call(_snapState, this);
}
}