create static method
Implementation
static Location create(int? startLine, int? startColumn, int? startOffset,
int? endLine, int? endColumn, int? endOffset,
[String? source]) {
final startSegment = Segment(startLine, startColumn, startOffset);
final endSegment = Segment(endLine, endColumn, endOffset);
return Location(startSegment, endSegment, source);
}