DefaultTextHeightBehavior constructor Null safety

const DefaultTextHeightBehavior(
  1. {Key? key,
  2. required TextHeightBehavior textHeightBehavior,
  3. required Widget child}

Creates a default text height behavior for the given subtree.

The textHeightBehavior and child arguments are required and must not be null.


const DefaultTextHeightBehavior({
  required this.textHeightBehavior,
  required super.child,
}) :  assert(textHeightBehavior != null),
      assert(child != null);