SharedIsolateElement.generate constructor

SharedIsolateElement.generate({
  1. required ClassElement classElement,
  2. required DartObject sharedIsolate,
  3. required ConstantReader annotation,
  4. required Set<DartType> sharedInstanse,
})

Implementation

factory SharedIsolateElement.generate({
  required final ClassElement classElement,
  required final DartObject sharedIsolate,
  required final ConstantReader annotation,
  required final Set<DartType> sharedInstanse,
}) {
  return SharedIsolateElement(
    classElement,
    sharedIsolate.getField("classId")!.toIntValue()!,
    annotation.read("isSameType").boolValue,
    sharedInstanse,
  );
}