title: flutter ternary with int - error type 'Null' is not a subtype of type 'int' of 'function result'
body: <p>I use the ternary operator to compare the number of comments and display different widgets depending on the result of the condition</p>
  <pre><code>                    (feedElement.cntComments &gt; 0)
                      ? Text(
                          feedElement.cntComments.toString(),
                          style: TextStyle(
                            color: Colors.grey,
                          ),
                        )
                      : Text(
                          'Comments',
                          style: TextStyle(
                            color: Colors.grey,
                          ),
                        ),
  </code></pre>
  <p>but I get an error type 'Null' is not a subtype of type 'int' of 'function result'</p>
  <p>model feed this</p>
  <pre><code>class FeedModel {
    String avatar;
    String account;
    String accountName;
    String message;
    bool verified;
    String timeAgo;
    int cntComments;
    int cntLikes;
    int cntShares;
  
    FeedModel({
      required this.avatar,
      required this.account,
      required this.accountName,
      required this.message,
      required this.verified,
      required this.timeAgo,
      required this.cntComments,
      required this.cntLikes,
      required this.cntShares,
    });
  }
  </code></pre>