printLog function

void printLog({
  1. String title = "Lifecycle",
  2. required String content,
})

Implementation

void printLog({String title = "Lifecycle", required String content}) {
  if (!debugMode) return;
  print(title.isEmpty ? content : "$title:$content");
}