title: Getting type 'String' is not a subtype of type 'int in my flutter project
body: <p>I am having a flutter project, it's been a while though since I opened it. So today I tried to run it and keep getting errors showing</p>
  <pre><code>type 'String' is not a subtype of type 'int'
  </code></pre>
  <p>And I don't get any errors before. Though I was using flutter <code>2.5.0</code> when it was compiled without errors, now am using flutter <code>3.0</code>.</p>
  <p>Is the error caused because of my flutter version?</p>