DartBridgeModelFormat class

Thin proto-byte bridge for URL → ModelFormat / ModelArtifactType inference. Delegates to the commons APIs (rac_model_format_from_url_proto, rac_artifact_infer_from_url_proto).

Flutter does NOT own URL-suffix heuristics; commons is authoritative.

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

applyInferredArtifact(ModelInfo model, [String? url]) ModelInfo
Populate the artifact-classification fields on a copy of model based on its downloadUrl via commons. Preserves caller-supplied artifact fields when already set and handles the built-in short-circuit (DIRECTORY). Mirrors Kotlin CppBridgeModelFormat.applyInferredArtifact.
formatFromUrl(String url) ModelFormat
URL → ModelFormat via commons.
inferArtifact(String url, {String modelId = ''}) ArtifactInferFromUrlResult
URL → ArtifactInferFromUrlResult via commons.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

shared DartBridgeModelFormat
final