Class constructor Null safety

Class(
  1. {required String? name,
  2. required LibraryRef? library,
  3. required bool? isAbstract,
  4. required bool? isConst,
  5. required bool? traceAllocations,
  6. required List<InstanceRef>? interfaces,
  7. required List<FieldRef>? fields,
  8. required List<FuncRef>? functions,
  9. required List<ClassRef>? subclasses,
  10. required String id,
  11. SourceLocation? location,
  12. List<InstanceRef>? typeParameters,
  13. ErrorRef? error,
  14. ClassRef? superClass,
  15. InstanceRef? superType,
  16. InstanceRef? mixin}
)

Implementation

Class({
  required this.name,
  required this.library,
  required this.isAbstract,
  required this.isConst,
  required this.traceAllocations,
  required this.interfaces,
  required this.fields,
  required this.functions,
  required this.subclasses,
  required String id,
  this.location,
  this.typeParameters,
  this.error,
  this.superClass,
  this.superType,
  this.mixin,
}) : super(
        id: id,
      );