init static method

dynamic init(
  1. bool isLogEnable
)

Implementation

static init(bool isLogEnable){
  _logger = Logger(
    printer: PrettyPrinter(
        methodCount: 2, // Number of method calls to be displayed
        errorMethodCount: 4, // Number of method calls if stacktrace is provided
        lineLength: 120, // Width of the output
        colors: true, // Colorful log messages
        printEmojis: false, // Print an emoji for each log message
        printTime: true, // Should each log print contain a timestamp
    ),
    level: isLogEnable ? Level.debug : Level.off,
  );
}