CoreMLBindings class
The platform APIs the core_ml library talks to.
Replace instance in tests to run the Dart layer against fakes:
CoreMLBindings.instance = CoreMLBindings(host: FakeHost());
Constructors
- CoreMLBindings({CoreMLHostApi? host, CoreMLPlatformApi? platform})
- Creates bindings, defaulting to the real platform channels.
Properties
-
finalizer
→ Finalizer<
int> -
Releases native handles whose Dart owners were garbage collected without
being disposed.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → CoreMLHostApi
-
The Core ML API (registered only on iOS 18+ / macOS 15+).
final
- platform → CoreMLPlatformApi
-
The always-available platform API.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ CoreMLBindings
-
The bindings used by every core_ml object.
getter/setter pair