The argument type 'void Function(String, int)' can't be assigned to the parameter type 'void Function(String, int?)'.
The argument type 'void Function(String, int)' can't be assigned to the parameter type 'void Function(String, int?)'.