TextifyConfig constructor
const
TextifyConfig({})
Creates a Textify configuration with the specified options.
Implementation
const TextifyConfig({
this.dilationSize = 22,
this.excludeLongLines = true,
this.attemptCharacterSplitting = true,
this.applyDictionaryCorrection = false,
this.matchingThreshold = 0.4,
this.maxProcessingTimeMs = 30000,
}) : 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');