TransformProperty constructor Null safety

TransformProperty(
  1. String name,
  2. Matrix4? value,
  3. {bool showName = true,
  4. Object? defaultValue = kNoDefaultValue,
  5. DiagnosticLevel level = DiagnosticLevel.info}
)

Create a diagnostics property for Matrix4 objects.

The showName and level arguments must not be null.

Implementation

TransformProperty(
  String super.name,
  super.value, {
  super.showName,
  super.defaultValue,
  super.level,
}) : assert(showName != null),
     assert(level != null);