HostApi class

Metadata to annotate a Pigeon API implemented by the host-platform.

The abstract class with this annotation groups a collection of Dart↔host interop methods. These methods are invoked by Dart and are received by a host-platform (such as in Android or iOS) by a class implementing the generated host-platform interface.

Constructors

HostApi({String? dartHostTestHandler})
Parametric constructor for HostApi.
const

Properties

dartHostTestHandler String?
The name of an interface generated for tests. Implement this interface and invoke [name of this handler].setup to receive calls from your real HostApi class in Dart instead of the host platform code, as is typical.
final
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