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