Dart List noSuchMethod()
Syntax & Examples


Syntax of List.noSuchMethod()

The syntax of List.noSuchMethod() method is:

 dynamic noSuchMethod(Invocation invocation) 

This noSuchMethod() method of List invoked when a nonexistent method or property is accessed.

Parameters

ParameterOptional/RequiredDescription
invocationrequiredthe invocation object representing the method or property access

Return Type

List.noSuchMethod() returns value of type dynamic.