smartDashesType property

SmartDashesType smartDashesType

Whether to allow the platform to automatically format dashes.

This flag only affects iOS versions 11 and above. It sets UITextSmartDashesType in the engine. When true, it passes UITextSmartDashesTypeYes, and when false, it passes UITextSmartDashesTypeNo.

As an example of what this does, two consecutive hyphen characters will be automatically replaced with one en dash, and three consecutive hyphens will become one em dash.

Defaults to true, unless obscureText is true, when it defaults to false. This is to avoid the problem where password fields receive autoformatted characters.

See also:


final SmartDashesType smartDashesType;