void log(Object? object, {String? tag}) { if (!inDebugMode) return; String text = tag != null ? '$tag $object' : '$object'; // ignore: avoid_print print(text); }