position property Null safety

double position
@Deprecated('The [position] property will be removed from the token class. Use ' '[termPosition] instead.'), final

Returns the position of the term from the start of the source text as a fraction of the source text length.

The position can be used as a proxy of term relevance in the source text.

A position of 0.0 means the term is at the start of the source text.

Implementation

@Deprecated(
    'The [position] property will be removed from the token class. Use '
    '[termPosition] instead.')
final double position;