type ‘int’ is not a subtype of type ‘double’ May 29, 2023 by Tarik An idea would be to use num instead of int or double in this case.