child method

LogScope child({
  1. required String id,
  2. required String label,
  3. Map<String, Object?>? metadata,
})

Creates a child scope under this scope.

Implementation

LogScope child({
  required String id,
  required String label,
  Map<String, Object?>? metadata,
}) =>
    LogScope(
      id: id,
      label: label,
      startTime: DateTime.now(),
      parent: this,
      metadata: metadata,
    );