forDisplay static method

Object? forDisplay(
  1. Object? data
)

data masked unless reveal is on. For the log UI.

Implementation

static Object? forDisplay(Object? data) => reveal.value ? data : redact(data);