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,
}) {
notify(
nextSnap: _snapState.copyToHasData(data),
sideEffects: sideEffects,
shouldOverrideDefaultSideEffects: shouldOverrideDefaultSideEffects,
stateInterceptor: stateInterceptor,
);
}