initializeState method

FutureOr<T?> initializeState()

Initialize the state

Implementation

FutureOr<T?> initializeState() {
  final data = snapState.data;
  if (isWaiting) {
    return stateAsync;
  }
  return data;
}