Debugprint Flutter

void main() {
    bool isInRelease = true;

    assert(() {
      isInRelease = false;
      return true;
    }());

    if (isInRelease) {
      debugPrint = (String? message, {int? wrapWidth}) {};
    }
}
Shadow