create static method

Location create(
  1. int? startLine,
  2. int? startColumn,
  3. int? startOffset,
  4. int? endLine,
  5. int? endColumn,
  6. int? endOffset, [
  7. String? source,
])

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);
}