verbose property

bool verbose
getter/setter pair

When true, checkPointer throws a StateError naming the method and arguments that were attempted on the freed pointer. When false, it throws a generic "has been freed" error instead.

Leave false in release builds, building the detailed message retains arg1/arg2 and does extra string work on every check.

Implementation

static bool verbose = false;