whenUpdated method

  1. @override
Stream<SplitClient> whenUpdated()
override

Returns Future that is completed when changes have been made, such as creating new feature flags or modifying segments.

Implementation

@override
Stream<SplitClient> whenUpdated() {
  return _platform
          .onUpdated(matchingKey: _matchingKey, bucketingKey: _bucketingKey)
          ?.map((event) => this) ??
      const Stream.empty();
}