RawDialogRoute<T> constructor Null safety

RawDialogRoute<T>(
  1. {required RoutePageBuilder pageBuilder,
  2. bool barrierDismissible = true,
  3. Color? barrierColor = const Color(0x80000000),
  4. String? barrierLabel,
  5. Duration transitionDuration = const Duration(milliseconds: 200),
  6. RouteTransitionsBuilder? transitionBuilder,
  7. RouteSettings? settings,
  8. Offset? anchorPoint}
)

A general dialog route which allows for customization of the dialog popup.

Implementation

RawDialogRoute({
  required RoutePageBuilder pageBuilder,
  bool barrierDismissible = true,
  Color? barrierColor = const Color(0x80000000),
  String? barrierLabel,
  Duration transitionDuration = const Duration(milliseconds: 200),
  RouteTransitionsBuilder? transitionBuilder,
  super.settings,
  this.anchorPoint,
}) : assert(barrierDismissible != null),
     _pageBuilder = pageBuilder,
     _barrierDismissible = barrierDismissible,
     _barrierLabel = barrierLabel,
     _barrierColor = barrierColor,
     _transitionDuration = transitionDuration,
     _transitionBuilder = transitionBuilder;