VlmFallbackPolicy class sealed
- Available extensions
- Annotations
-
- @freezed
Constructors
- VlmFallbackPolicy.always()
-
Skip the classical OCR backend entirely. Every page is sent to the VLM.
constfactory
- VlmFallbackPolicy.disabled()
-
No VLM fallback (default). Behaves identically to the pre-policy single-backend mode.
constfactory
- VlmFallbackPolicy.onLowQuality({required double qualityThreshold})
-
Try the classical OCR backend first. If the quality score is below
quality_threshold, send the page to the VLM.constfactory
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
-
map<
TResult extends Object?> ({required TResult disabled(VlmFallbackPolicy_Disabled value), required TResult onLowQuality(VlmFallbackPolicy_OnLowQuality value), required TResult always(VlmFallbackPolicy_Always value)}) → TResult -
Available on VlmFallbackPolicy, provided by the VlmFallbackPolicyPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> ({TResult? disabled(VlmFallbackPolicy_Disabled value)?, TResult? onLowQuality(VlmFallbackPolicy_OnLowQuality value)?, TResult? always(VlmFallbackPolicy_Always value)?}) → TResult? -
Available on VlmFallbackPolicy, provided by the VlmFallbackPolicyPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> ({TResult disabled(VlmFallbackPolicy_Disabled value)?, TResult onLowQuality(VlmFallbackPolicy_OnLowQuality value)?, TResult always(VlmFallbackPolicy_Always value)?, required TResult orElse()}) → TResult -
Available on VlmFallbackPolicy, provided by the VlmFallbackPolicyPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> ({TResult disabled()?, TResult onLowQuality(double qualityThreshold)?, TResult always()?, required TResult orElse()}) → TResult -
Available on VlmFallbackPolicy, provided by the VlmFallbackPolicyPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> ({required TResult disabled(), required TResult onLowQuality(double qualityThreshold), required TResult always()}) → TResult -
Available on VlmFallbackPolicy, provided by the VlmFallbackPolicyPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> ({TResult? disabled()?, TResult? onLowQuality(double qualityThreshold)?, TResult? always()?}) → TResult? -
Available on VlmFallbackPolicy, provided by the VlmFallbackPolicyPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited