withModelConsultClientLabel<T> function

Future<T> withModelConsultClientLabel<T>(
  1. String label,
  2. Future<T> action()
)

Runs action in a zone tagged with label for tracking header attribution.

Implementation

Future<T> withModelConsultClientLabel<T>(
  String label,
  Future<T> Function() action,
) {
  return runZoned(action, zoneValues: <Object?, Object?>{_clientLabelZoneKey: label});
}