IconDataProperty constructor Null safety

IconDataProperty(
  1. String name,
  2. IconData? value,
  3. {String? ifNull,
  4. bool showName = true,
  5. DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
  6. DiagnosticLevel level = DiagnosticLevel.info}
)

Create a diagnostics property for IconData.

The showName, style, and level arguments must not be null.

Implementation

IconDataProperty(
  String super.name,
  super.value, {
  super.ifNull,
  super.showName,
  super.style,
  super.level,
}) : assert(showName != null),
     assert(style != null),
     assert(level != null);