countCrash method

  1. @override
int countCrash(
  1. String release
)
override

Counts one more crash on this device for release and returns the count. Persisted with the records, because a crash loop is a sequence of restarts, and a limit that restarts with them limits nothing.

Implementation

@override
int countCrash(String release) =>
    _counts[release] = (_counts[release] ?? 0) + 1;