fetchState method

  1. @override
Future<T?> fetchState()
override

Implementation

@override
Future<T?> fetchState() async {
  T? state = await _cacheApi.getValue(stateKey) as T?;
  _sharedState = state;
  return state;
}