NativeLabel class

Inheritance

Constructors

NativeLabel(String text, {BoxDecoration? decoration, TextStyle? style, double? kern, double? lineSpacing, double edgeInsetTop = 0.0, double edgeInsetBottom = 0.0, double edgeInsetLeft = 0.0, double edgeInsetRight = 0.0, bool copyable = false, String? fontName, Key? key})
const

Properties

copyable bool
Whether user can use a long press gesture to copy.
final
decoration BoxDecoration?
Controls the BoxDecoration of the box behind the label.
final
edgeInsetBottom double
Sets the top edge insets.
final
edgeInsetLeft double
Sets the top edge insets.
final
edgeInsetRight double
Sets the top edge insets.
final
edgeInsetTop double
Sets the top edge insets.
final
fontName String?
Sets the name of the font to be used.
final
hashCode int
The hash code for this object.
no setterinherited
kern double?
Sets the spacing between characters of the text.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lineSpacing double?
Sets the spacing between lines of text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
Sets the style of the text being edited.
final
text String
The text content of the label.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() NativeLabelState
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}) 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