LoggingLayer constructor

LoggingLayer({
  1. void sink(
    1. String line
    )?,
})

Creates a logging layer. Defaults to writing to stdout via print unless a custom sink is provided.

Implementation

LoggingLayer({void Function(String line)? sink}) : sink = sink ?? print;