offset property

int? offset
final

The offset in source where the error was detected.

A zero-based offset into the source that marks the format error causing this exception to be created. If source is a string, this should be a string index in the range 0 <= offset <= source.length.

If input is a string, the toString method may represent this offset as a line and character position. The offset should be inside the string, or at the end of the string.

May be omitted. If present, source should also be present if possible.

Implementation

final int? offset;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-core/FormatException/offset.html