allowed property

bool get allowed

true in debug/profile builds, and in release builds only after an explicit enabled: true.

Implementation

static bool get allowed => !kReleaseMode || _optedIn;