time method

Point time(
  1. dynamic time
)

Sets point time.

A int or DateTime value can be used to carry an int value of a precision that depends on WriteApi, nanoseconds by default.

Implementation

Point time(dynamic time) {
  if (time is DateTime) {
    timestamp = time;
  } else if (time is num) {
    timestamp = time;
  } else {
    throw ArgumentError('Illegal timestamp type');
  }
  return this;
}