DVNavLink class
A navigable link to a route.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- DVNavLink
Constructors
-
const
-
A link that leaves the site.
const
Properties
- autofocus → bool
-
Whether this link takes focus when it appears. For the first link on a
page a keyboard user has just arrived at.
final
- child → Widget
-
What it looks like.
final
- enabled → bool
-
Whether it navigates. A disabled link still renders.
final
- externalUrl → String?
-
Where this goes when it leaves the site, or null for a route link.
final
- focusNode → FocusNode?
-
The node this link focuses. Supplied where a caller wants to move focus
to it, or read it; otherwise the link owns one.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
onPreload
→ Future<
void> Function()? -
How to fetch the destination. Defaults to the route's own loader.
final
- onPreview → DVLinkPreviewCallback?
-
Where to report the destination, for a status strip or similar.
final
- openInNewTab → void Function(String path)?
-
How to open the destination beside this one, for a middle or modifier
click. Defaults to the platform's own way of doing it.
final
- padding → EdgeInsets
-
The hit area around child. Padding here rather than on the child means
the space around the label is clickable, so a click that looks
on-target does not miss.
final
- preload → DVLinkPreload
-
When to fetch the destination.
final
- preview → DVLinkPreview
-
Whether to show the destination on a rest or a long press.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
What a screen reader reads. Defaults to whatever child announces.
final
- to → DVRouteTarget
-
Where it goes.
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< DVNavLink> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited