FailedToLoadProtocolMethodException class final

Failed to load a method of a protocol.

This means that a method that was seen in the protocol declaration at compile time was missing from the protocol at runtime. This is usually caused by a version mismatch between the compile time header and the runtime framework (eg, running an app on an older iOS device).

To fix this, check whether the method exists at runtime, using ObjCProtocolMethod.isAvailable, and implement fallback logic if it's missing.

Implemented types

Constructors

FailedToLoadProtocolMethodException(String protocol, String method)

Properties

hashCode int
The hash code for this object.
no setterinherited
method String
final
protocol String
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.
override

Operators

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