autoTimeMills static method

int? autoTimeMills(
  1. dynamic source, [
  2. String? key
])

Extracts and returns the auto-generated timestamp from the source.

Implementation

static int? autoTimeMills(dynamic source, [String? key]) {
  final data = _v(key ?? EntityKey.i.timeMills, source);
  if (data is int) {
    return data;
  } else if (data is String) {
    return int.tryParse(data);
  } else {
    return null;
  }
}