entryCount static method

int entryCount(
  1. String name
)

Gets the count of entries for a tag.

Returns 0 in release builds.

Example:

Log.d('Auth flow has ${Log.entryCount("auth")} entries');

Implementation

static int entryCount(String name) {
  var count = 0;
  assert(() {
    count = _tags[name]?.length ?? 0;
    return true;
  }());
  return count;
}