date time string convert to DateTime in dart code example
Example 1: dart convert string to datetime
var dateTime = DateTime.parse("dateTimeString");
Example 2: how to convert timestamp to datetime in dart
Timestamp time; //from firebase
DateTime.fromMicrosecondsSinceEpoch(time.microsecondsSinceEpoch)