fetchFlags method

  1. @override
Future<FetchResponse?> fetchFlags()
override

Implementation

@override
Future<FetchResponse?> fetchFlags() async {
  return getStrategy().fetchFlags().whenComplete(() {
    if (visitor.config.decisionMode == Mode.BUCKETING &&
        Flagship.getStatus() != FSSdkStatus.SDK_PANIC) {
      visitor.sendHit(Segment(persona: visitor.getCurrentContext()));
    }
  });
}