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.
Parameter | Optional/Required | Description |
---|---|---|
invocation | required | the invocation representing the method call |
String.noSuchMethod() returns value of type dynamic
.