BarcodeCleaner class

A utility class for cleaning and formatting barcodes with various options.

This class provides methods to:

  • Remove leading zeros from barcodes
  • Limit barcode length
  • Clean barcodes using predefined patterns
  • Perform custom cleaning operations

Constructors

BarcodeCleaner()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clean({required String barcode, required CleanBarCodeOption cleanBarCodeOption}) String
Cleans the barcode based on the specified cleaning option.
customClean({required CustomCleanOption customCleanOption, required String barcode}) String
Performs custom cleaning based on the specified cleaning option.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeIncreasedLetter(String barcode, int maxLength) String
Removes characters beyond the specified maximum length.
removeStartZero(String barcode) String
Removes leading zeros from the barcode.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited