LoggingLayer constructor
LoggingLayer({
- void sink(
- 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;