MorphAnchor constructor
- Key? key,
- required bool isOpen,
- required VoidCallback onDismiss,
- required MorphTargetSpec target,
- required WidgetBuilder closedBuilder,
- required MorphContentBuilder openBuilder,
- Object? tagId,
- MorphSurfaceSpec? spec,
- ShapeBorder shape = const RoundedRectangleBorder(),
- Color? surfaceColor,
- double elevation = 0,
- Widget? replica,
- bool snapshotGhost = false,
- MorphMotion? motion,
- bool barrierDismissible = true,
- double? maxScrimOpacity,
- Color? scrimColor,
- Color? shadowColor,
- String? semanticLabel,
Creates a declarative morph driven by isOpen.
Implementation
const MorphAnchor({
super.key,
required this.isOpen,
required this.onDismiss,
required this.target,
required this.closedBuilder,
required this.openBuilder,
this.tagId,
this.spec,
this.shape = const RoundedRectangleBorder(),
this.surfaceColor,
this.elevation = 0,
this.replica,
this.snapshotGhost = false,
this.motion,
this.barrierDismissible = true,
this.maxScrimOpacity,
this.scrimColor,
this.shadowColor,
this.semanticLabel,
});