convert timestamp to int dart code example
Example 1: dart timestamp
void main() {
print(new DateTime.now().millisecondsSinceEpoch);
}
Example 2: how to convert timestamp to datetime in dart
Timestamp time; //from firebase
DateTime.fromMicrosecondsSinceEpoch(time.microsecondsSinceEpoch)