Dart String noSuchMethod()
Syntax & Examples

Syntax of String.noSuchMethod()

The syntax of String.noSuchMethod() method is:

 dynamic noSuchMethod(Invocation invocation) 

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

Parameters

ParameterOptional/RequiredDescription
invocationrequiredthe invocation representing the method call

Return Type

String.noSuchMethod() returns value of type dynamic.