Log.redirect constructor

const Log.redirect({
  1. bool enabled,
  2. required Log child,
})

redirect implementation

redirect conditionally

enabled by default

Implementation

const factory Log.redirect({
  bool enabled,
  required Log child,
}) = LogRedirectImpl;