The syntax of double.noSuchMethod() method is:
dynamic noSuchMethod(Invocation invocation)
This noSuchMethod() method of double invoked when a non-existent method or property is accessed.
double.noSuchMethod() returns value of type dynamic.
dynamic