log method Null safety

void log(
  1. dynamic logObject,
  2. {bool isClient = true,
  3. String? initial}
)
inherited

Implementation

void log(dynamic logObject, {bool isClient = true, String? initial}) {
  if (isLogEnabled) {
    initial ??= (isClient == true) ? initialClient : initialServer;
    if (logName != null) {
      print('$logName $initial: $logObject');
    } else {
      print('$initial: $logObject');
    }
  }
}