FieldReflection<O, T> constructor

FieldReflection<O, T>(
  1. ClassReflection<O> classReflection,
  2. Type declaringType,
  3. TypeReflection type,
  4. String name,
  5. bool nullable,
  6. FieldReflectionGetterAccessor<O, T> getterAccessor,
  7. FieldReflectionSetterAccessor<O, T>? setterAccessor,
  8. O? object,
  9. bool isStatic,
  10. bool isFinal, [
  11. List<Object>? annotations,
])

Implementation

FieldReflection(
    ClassReflection<O> classReflection,
    Type declaringType,
    this.type,
    this.name,
    this.nullable,
    this.getterAccessor,
    this.setterAccessor,
    this.object,
    bool isStatic,
    this.isFinal,
    [List<Object>? annotations])
    : _annotations = annotations == null || annotations.isEmpty
          ? _annotationsEmpty
          : List<Object>.unmodifiable(annotations),
      super(classReflection, declaringType, isStatic);