defineScope1<T1> static method

Disposable? Function(Logger, T1) defineScope1<T1>(
  1. String formatString
)

Defines a log scope with one parameter.

Implementation

static Disposable? Function(Logger, T1) defineScope1<T1>(
  String formatString,
) =>
    (logger, arg1) => logger.beginScope(
          formatString.replaceAll('{0}', arg1.toString()),
        );