log<T> static method

void log<T>(
  1. dynamic e, {
  2. String? subTitle,
})

Implementation

static void log<T>(dynamic e, {String? subTitle}) {
  String titleLog = T.runtimeType.toString();
  if (subTitle != null) titleLog += '[$subTitle]';
  LogController.setLog(log: e.toString(), titleLog: titleLog);
  if (kDebugMode) {
    print('$titleLog: $e');
  }
}