logIf method
logIf: Logs the object if the condition is true.
Implementation
void logIf(bool condition) {
if (condition) {
log;
}
}
logIf: Logs the object if the condition is true.
void logIf(bool condition) {
if (condition) {
log;
}
}