ShippingLabelOptions class
Opt-in cloud address parsing for shipping-label OCR results.
Both flags default to false. Enabling either makes a POST v1/address/parse
network call per prediction: it can add several seconds of latency, sends the
OCR'd address text off-device, and is billable. Parsing also needs credentials —
supplied via OnDeviceOCRManagerCommunicator.configureOnDeviceOCR, or via
apiKey/token on
OnDeviceOCRManagerCommunicator.makePredictionWithModule for ModelManager-loaded
models. With the flags on but no credentials, the unparsed result is returned.
Only applies to ModelClass.shippingLabel; ignored for other model classes.
Constructors
- ShippingLabelOptions({bool parseRecipientAddress = false, bool parseSenderAddress = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- parseRecipientAddress → bool
-
final
- parseSenderAddress → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited