AnalyzedClass.from constructor

AnalyzedClass.from(
  1. AnalyzedClass other, {
  2. Map<String, DartType?> additionalLocals = const {},
})

Implementation

AnalyzedClass.from(AnalyzedClass other,
    {Map<String, DartType?> additionalLocals = const {}})
    : classElement = other.classElement,
      isMockLike = other.isMockLike,
      locals = {}
        ..addAll(other.locals)
        ..addAll(additionalLocals);