sendHit method

  1. @override
Future<void> sendHit(
  1. BaseHit pHit
)
override

Implementation

@override
// Send Hit
Future<void> sendHit(BaseHit pHit) async {
  if (pHit.isValid() == true) {
    // Add to pool
    _fsHitPool.addNewTrackElement(pHit);
    this.onCacheHit(pHit);
  } else {
    // When the hit is not valid
    Flagship.logger(Level.ERROR, "Hit not valid");
  }
}