init static method

dynamic init({
  1. bool? enableLog,
  2. List<Interceptor>? interceptors,
})

Implementation

static init({bool? enableLog, List<Interceptor>? interceptors}) {
  ULog.addLogAdapter(UlogConsoleAdapter());

  if (interceptors != null) {
    _interceptors.addAll(interceptors);
  }
}