FlagsSummary<T> constructor Null safety

FlagsSummary<T>(
  1. String name,
  2. Map<String, T?> value,
  3. {String? ifEmpty,
  4. bool showName = true,
  5. bool showSeparator = true,
  6. DiagnosticLevel level = DiagnosticLevel.info}
)

Create a summary for multiple properties, indicating whether each of them is present (non-null) or absent (null).

The value, showName, showSeparator and level arguments must not be null.

Implementation

FlagsSummary(
  String super.name,
  Map<String, T?> super.value, {
  super.ifEmpty,
  super.showName,
  super.showSeparator,
  super.level,
}) : assert(value != null),
     assert(showName != null),
     assert(showSeparator != null),
     assert(level != null);