setEnabled static method

void setEnabled(
  1. bool enable
)

Sets the logger to be enabled when true is set else it'll be disabled.

Implementation

static void setEnabled(bool enable) async {
  await methodChannel.invokeMethod('setLoggerEnabled', enable);
}