logDebugCall static method

String logDebugCall({
  1. required String message,
  2. bool wrapInQuotes = false,
})

Build code which calls logDebug function.

message is the message to be logged. wrapInQuotes is a flag to indicate if the message should be wrapped in quotes. If the text will not be wrapped in aditional quotes it will be treated as a JS identifier. It's default false because the developer needs make concatenations most of the time. /// DON'T FORGET TO SET wrapInQuotes TO TRUE IF YOU ARE PASSING A STRING LITERAL.

Implementation

static String logDebugCall({required String message, bool wrapInQuotes = false}) => functionCall(
      name: 'logDebug',
      args: [wrapInQuotes ? "'$message'" : message],
    );