TextifyConfig constructor
const
TextifyConfig({})
Creates a Textify configuration with the specified options.
Implementation
const TextifyConfig({
this.dilationSize = _defaultDilationSize,
this.excludeLongLines = true,
this.attemptCharacterSplitting = true,
this.applyDictionaryCorrection = false,
this.matchingThreshold = _defaultMatchingThreshold,
this.maxProcessingTimeMs = _defaultMaxProcessingTimeMs,
}) : assert(dilationSize > 0, 'dilationSize must be positive'),
assert(
matchingThreshold >= 0.0 && matchingThreshold <= 1.0,
'matchingThreshold must be between 0.0 and 1.0',
),
assert(maxProcessingTimeMs > 0, 'maxProcessingTimeMs must be positive');