title: Flutter telling me I have int? in my model file when I don't
body: <p>This is my model file:</p>
  <pre><code>final String shopTable = 'shop';
  
  class ShopFields {
    static final String id = 'id';
    static final String item = 'item';
    static final String done = 'done';
    static final List&lt;String&gt; allFields = [id, item, done];
  }
  
  class Shop {
    final int id;
    final String item;
    bool done;
  
    Shop({
      required this.id,
      required this.item,
      this.done = false,
    });
  
    Map&lt;String, Object?&gt; toJson() =&gt; {
          ShopFields.id: id,
          ShopFields.item: item,
          ShopFields.done: done ? 1 : 0,
        };
  
    static Shop fromJson(Map&lt;String, Object?&gt; json) =&gt; Shop(
          id: json[ShopFields.id] as int,
          item: json[ShopFields.item] as String,
          done: json[ShopFields.done] == 1 ? true : false,
        );
  }
  </code></pre>
  <p>I am getting an error that a type int? can't be assigned to a parameter type int but I don't have a type int?</p>
  <p>ANy help would be appreciated.</p>