setToHasData method

  1. @override
void setToHasData(
  1. dynamic data, {
  2. SideEffects<T>? sideEffects,
  3. bool shouldOverrideDefaultSideEffects(
    1. SnapState<T>
    )?,
  4. 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,
  );
}