hasDuplicateKeyWithPreviousContexts property

bool get hasDuplicateKeyWithPreviousContexts

Implementation

bool get hasDuplicateKeyWithPreviousContexts {
  var context = previousContext;
  while (context != null) {
    if (context.dataKey == dataKey) return true;
    context = context.previousContext;
  }
  return false;
}