The argument type 'double? Function([String?, TextStyle?, double?])' cannot be assigned to the parameter type 'FutureOr<double?> Function(List)'. This means that the function you are trying to assign as an argument does not match the expected type of the parameter.

To resolve this issue, you need to either change the parameter type to match the function signature or modify the function to match the expected parameter type.

If you want to change the parameter type to match the function signature, you can do so by changing the type from 'FutureOr<double?> Function(List)' to 'double? Function([String?, TextStyle?, double?])'.

If you want to modify the function to match the expected parameter type, you can do so by updating the function signature to accept a list of dynamic values instead of individual parameters.

Flutter Error: 'double? Function([String?, TextStyle?, double?])' cannot be assigned to 'FutureOr<double?> Function(List<dynamic>)'

原文地址: https://www.cveoy.top/t/topic/bRoq 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录