logDebug static method
Build a function which log debug data to the console.
It will only work if the app is running in debug mode (kDebugMode == true
).
Implementation
static String logDebug() => function(
name: "logDebug",
args: ["message"],
body: "if ($kDebugMode) console.log(message);",
);