PortalTarget constructor

const PortalTarget({
  1. Key? key,
  2. bool visible = true,
  3. Anchor anchor = const Filled(),
  4. Duration? closeDuration,
  5. PortalFollower? portalFollower,
  6. List<PortalLabel> portalCandidateLabels = const [PortalLabel.main],
  7. String? debugName,
  8. StackFit fit = StackFit.loose,
  9. required Widget child,
})

Implementation

const PortalTarget({
  Key? key,
  this.visible = true,
  this.anchor = const Filled(),
  this.closeDuration,
  this.portalFollower,
  this.portalCandidateLabels = const [PortalLabel.main],
  this.debugName,
  this.fit = StackFit.loose,
  required this.child,
})  : assert(visible == false || portalFollower != null),
      super(key: key);