CoreMLPlatformApi class
Always available, on every OS version.
Constructors
- CoreMLPlatformApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for CoreMLPlatformApi. The
binaryMessengernamed argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
assetPath(
String assetKey, String? package) → Future< String?> -
The absolute on-disk path of a Flutter asset (file or directory, such as
a bundled
.mlpackage), or null if it is not in the app bundle. -
isSupported(
) → Future< bool> - Whether this plugin's Core ML surface is available (iOS 18+ / macOS 15+).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
platformVersion(
) → Future< String> - The OS name and version, for diagnostics.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>