title: Flutter: type 'String' is not a subtype of type 'DateTime'
body: <p>I want to get TimeStamp from mysql &amp; Change it into time ago
  My TimeStamp is look like:</p>
  <pre><code>2021-03-04 06:06:48
  </code></pre>
  <p>And in Flutter:</p>
  <pre><code>[{id: 1, caption: first post, useruid: b0zbRHZEKMbGSdNoVSjI0gsxXTX2, time: 2021-03-04 06:06:48,}],
  </code></pre>
  <p>Error
  type 'String' is not a subtype of type 'DateTime'</p>
  <p>Here i call to change my date &amp; time to timeago with the help of this <a href="https://pub.dev/packages/timeago" rel="noreferrer">plugin</a>..</p>
  <pre><code>ListView(
          children: snapshot.data.map&lt;Widget&gt;((document) {
        Provider.of&lt;PostFunctions&gt;(context, listen: false)
            .showTimeAgo(document['time']);
  return My Other Code...
  )
  
  
  I show like this in My Text
  </code></pre>
  <pre><code>' , ${Provider.of&lt;PostFunctions&gt;(context, listen: false).getImageTimePosted.toString()}'
  </code></pre>
  <p>I Change my Date&amp;Time Here</p>
  <pre><code>  showTimeAgo(dynamic timedata) {
      print(timedata);
  
      imageTimePosted = timeago.format(timedata);
      print(' my time posted ***** $imageTimePosted');
      notifyListeners();
    }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Y1reQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Y1reQ.png" alt="enter image description here" /></a></p>