lastRequest method

DateTime lastRequest({
  1. String? methodId,
})

Returns last time request was sent

Returns last time request of class was sent if specified

Returns DateTime.fromMillisecondsSinceEpoch(0) if never was sent

Implementation

DateTime lastRequest({String? methodId}) => methodId == null
    ? globalLastRequestTime
    : (lastRequestsTimes[methodId] ?? DateTime.fromMillisecondsSinceEpoch(0));