log static method

dynamic log(
  1. Object? object
)

Implementation

static log(Object? object) {
  if (kDebugMode) {
    final timestamp = DateTime.now().toIso8601String().split("T").last;

    developer.log("[$timestamp] $object");
  }
}