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 name,
  IconData? value, {
  String? ifNull,
  bool showName = true,
  DiagnosticsTreeStyle style = DiagnosticsTreeStyle.singleLine,
  DiagnosticLevel level = DiagnosticLevel.info,
}) : assert(showName != null),
     assert(style != null),
     assert(level != null),
     super(name, value,
       showName: showName,
       ifNull: ifNull,
       style: style,
       level: level,
     );