Google is committed to advancing racial equity for Black communities. See how.

noSuchMethod method

view source

dynamic noSuchMethod (Invocation invocation) inherited

Invoked when a non-existent method or property is accessed.

Classes can override noSuchMethod to provide custom behavior.

If a value is returned, it becomes the result of the original invocation.

The default behavior is to throw a NoSuchMethodError.

Implementation

@pragma("vm:entry-point")
external dynamic noSuchMethod(Invocation invocation);