ModelAsset class sealed

A model source consumed by a MediaPipe task.

Implementers
Annotations
  • @immutable

Constructors

ModelAsset.bytes(Uint8List bytes, {String? name})
Loads a model from in-memory bytes.
factory
ModelAsset.path(String path)
Loads a model from a local filesystem path.
factory
ModelAsset.uri(Uri uri, {String? sha256})
Loads a model from uri, optionally checking sha256.
factory

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

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