whenReadyFromCache method

  1. @override
Future<SplitClient> whenReadyFromCache()
override

Returns Future that is completed once the SDK has been able to load definitions from cache. This information is not guaranteed to be the most up-to-date, but all the functionality will be available.

Implementation

@override
Future<SplitClient> whenReadyFromCache() async {
  await _platform.onReadyFromCache(
      matchingKey: _matchingKey, bucketingKey: _bucketingKey);

  return Future.value(this);
}