Script constructor Null safety

Script(
  1. {required String? uri,
  2. required LibraryRef? library,
  3. required String id,
  4. int? lineOffset,
  5. int? columnOffset,
  6. String? source,
  7. List<List<int>>? tokenPosTable}
)

Implementation

Script({
  required this.uri,
  required this.library,
  required String id,
  this.lineOffset,
  this.columnOffset,
  this.source,
  this.tokenPosTable,
}) : super(
        id: id,
      );