Expiry Date Text Builder

Defined in library scandit_datacapture_label

ExpiryDateTextBuilder
class ExpiryDateTextBuilder : TextFieldBuilder<ExpiryDateTextBuilder, ExpiryDateText>

Added in version 7.2.0

This class is used to define an expiry date field for a LabelDefinition in a fluent way.

setDataTypePatterns(dataTypePattern, dataTypePatterns)
ExpiryDateTextBuilder setDataTypePatterns(
        {String? dataTypePattern,
        Iterable<String>? dataTypePatterns})

Added in version 7.2.0

Sets the identifying text patterns (data type patterns) from a list of strings or a single string.

setDataTypePattern(dataTypePattern)
ExpiryDateTextBuilder setDataTypePattern(RegExp dataTypePattern)

Added in version 7.2.0

Sets the identifying text patterns (data type patterns) from a single regular expression.

resetDataTypePatterns()
ExpiryDateTextBuilder resetDataTypePatterns()

Added in version 7.2.0

Resets the identifying text patterns (data type patterns) to an empty list. For cases where the expiry date has no associated identifying text.

setLabelDateFormat(labelDateFormat)
ExpiryDateTextBuilder setLabelDateFormat(LabelDateFormat labelDateFormat)

Added in version 7.2.0

Sets a LabelDateFormat to use when recognising this date.

build(name)
ExpiryDateText build(String name)

Added in version 7.2.0

Builds the ExpiryDateText using the properties provided previously with other methods.