log static method

void log(
  1. String? message, {
  2. DateTime? time,
  3. int? sequenceNumber,
  4. int level = 0,
  5. String name = '',
  6. dynamic error,
  7. StackTrace? stackTrace,
})

log

Implementation

static void log(
  String? message, {
  DateTime? time,
  int? sequenceNumber,
  int level = 0,
  String name = '',
  // ignore: avoid_annotating_with_dynamic
  dynamic error,
  StackTrace? stackTrace,
}) {
  if (!enable) {
    return;
  }
  developer.log(message ?? '',
      name: name, error: error, stackTrace: stackTrace);
}