SuperTextNumber class

Widget that displays a number with customizable animated effects.

Inheritance

Constructors

SuperTextNumber(int number, {Key? key, String? prefixText, String? suffixText, TextStyle? style, SuperTextController? controller, Duration animDuration = const Duration(milliseconds: 200), SuperTextType type = SuperTextType.scale, TextAlign? textAlign, double? textScaleFactor, double? letterSpacing, Axis direction = Axis.horizontal})
Constructs a SuperTextNumber widget.

Properties

animDuration Duration
The duration of the animation.
finalinherited
controller SuperTextController?
The controller for managing this SuperText widget.
finalinherited
direction Axis
The direction in which to lay out the text.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
key Key
Controls how one widget replaces another widget in the tree.
finalinherited
letterSpacing double?
The space between each letter of the text.
finalinherited
number int
The number to display.
final
prefixText String?
Optional text to display before the main text.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle?
The text style to apply to the text.
finalinherited
suffixText String?
Optional text to display after the main text.
finalinherited
superChars → RxList<SuperChar>
List of SuperChar widgets representing each character of the text.
finalinherited
text → RxString
The text value observed by this widget.
finalinherited
textAlign TextAlign?
The alignment of the text within its container.
finalinherited
textScaleFactor double?
The factor by which to scale the text.
finalinherited
type SuperTextType
The type of animation for the text.
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SuperText>
Creates the mutable state for this widget at a given 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.
inherited
initChars() → void
Initializes the SuperChar widgets based on the text value.
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