sampleLength property

int? sampleLength
final

Maximum number of characters to sample for direction detection.

If null, the entire text will be analyzed. If specified, only up to this many characters from the beginning of the text will be used to determine directionality.

Default is 50 characters, which provides a good balance between performance and accuracy for most text.

Implementation

final int? sampleLength;