getLastTriggerTime static method

Future<DateTime?> getLastTriggerTime(
  1. String eventKey
)

Gets the last time an event was triggered.

Returns a Future that completes with the DateTime of the last trigger, or null if the event has never been triggered.

Implementation

static Future<DateTime?> getLastTriggerTime(String eventKey) async {
  return await _eventCounter.getLastTriggerTime(eventKey);
}