CupertinoNavigationBarBackButton constructor Null safety

const CupertinoNavigationBarBackButton(
  1. {Key? key,
  2. Color? color,
  3. String? previousPageTitle,
  4. VoidCallback? onPressed}
)

Construct a CupertinoNavigationBarBackButton that can be used to pop the current route.

The color parameter must not be null.

Implementation

const CupertinoNavigationBarBackButton({
  super.key,
  this.color,
  this.previousPageTitle,
  this.onPressed,
}) : _backChevron = null,
     _backLabel = null;