inheritedPublicFieldNames property Null safety

List<String> inheritedPublicFieldNames

Implementation

List<String> get inheritedPublicFieldNames {
  final result = <String>[];
  for (var fieldName in publicFieldNames) {
    final dm = getDeclarationMirror(fieldName)!;
    if (_safeGetParentClassMirror(dm) != classMirror) {
      result.add(fieldName);
    }
  }
  return result;
}