MinimalLink class

Words that act: "Forgot password?", "View all", "Terms". The accent's ink with a thin underline a little below the baseline, in the size of the line it sits in (style unless stated, else the body). A link that leaves the app (external) ends in a small arrow out, mirrored right to left.

It is a control, not decoration: the pointer turns to a hand over it, the keyboard focuses it (a ring on the shapes.mark step around the words), Enter follows it, and a press takes the look's faint wash. It never changes under a hovering pointer. A screen reader hears a link. A null onPressed prints the words in the quiet ink with no underline.

MinimalLink('Forgot password?', onPressed: reset)
Inheritance

Constructors

MinimalLink(String label, {Key? key, VoidCallback? onPressed, bool external = false, TextStyle? style, FocusNode? focusNode, bool autofocus = false})
A link saying label.
const

Properties

autofocus → bool
Whether it takes keyboard focus when it first appears.
final
external → bool
The link leaves the app (a web page, the mail app): an arrow out ends it.
final
focusNode → FocusNode?
Its focus node, for a caller that moves focus to it; null keeps one of its own.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label → String
What it says.
final
onPressed → VoidCallback?
Follows it; null disables it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → TextStyle?
The words' style before the link's colour and underline; null takes the theme's body.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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.
override
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