FlagsSummary<T> constructor

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 name,
  Map<String, T> value, {
  String ifEmpty,
  bool showName = true,
  bool showSeparator = true,
  DiagnosticLevel level  = DiagnosticLevel.info,
}) : assert(value != null),
     assert(showName != null),
     assert(showSeparator != null),
     assert(level != null),
     super(
       name,
       value,
       ifEmpty: ifEmpty,
       showName: showName,
       showSeparator: showSeparator,
       level: level,
     );