FadeScaleTransitionConfiguration constructor

const FadeScaleTransitionConfiguration({
  1. Color barrierColor = Colors.black54,
  2. bool barrierDismissible = true,
  3. Duration transitionDuration = const Duration(milliseconds: 150),
  4. Duration reverseTransitionDuration = const Duration(milliseconds: 75),
  5. String barrierLabel = 'Dismiss',
})

Creates the Material fade transition configuration.

barrierDismissible configures whether or not tapping the modal's scrim dismisses the modal. barrierLabel sets the semantic label for a dismissible barrier. barrierDismissible cannot be null. If barrierDismissible is true, the barrierLabel cannot be null.

Implementation

const FadeScaleTransitionConfiguration({
  super.barrierColor = Colors.black54,
  super.barrierDismissible = true,
  super.transitionDuration = const Duration(milliseconds: 150),
  super.reverseTransitionDuration = const Duration(milliseconds: 75),
  String super.barrierLabel = 'Dismiss',
});