Passing dynamic datatype to custom functions

Hi developers,I am facing one issue in passing dynamic data type to custom function, is there any way to how can I overcome this issue. I need some thing like this:

double? newCustomFunction(dynamic? intprice){
   return intprice.toDouble();
}
1
2 replies