AnimatedFlipCounter class

Inheritance

Constructors

AnimatedFlipCounter({Key? key, required num value, Duration duration = const Duration(milliseconds: 300), Curve curve = Curves.linear, TextStyle? textStyle, String? prefix, String? suffix, int fractionDigits = 0, int wholeDigits = 1, String? thousandSeparator, String decimalSeparator = '.', MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center, EdgeInsets padding = EdgeInsets.zero})
const

Properties

curve Curve
The curve to apply when animating the value of this counter.
final
decimalSeparator String
Insert a symbol between the integer part and the fractional part.
final
duration Duration
The duration over which to animate the value of this counter.
final
fractionDigits int
How many digits to display, after the decimal point.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainAxisAlignment MainAxisAlignment
How the digits should be placed. Can be used to control text alignment.
final
padding EdgeInsets
The padding around each of the digits, defaults to 0.
final
prefix String?
The text to display in front of the counter.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
suffix String?
The text to display after the counter.
final
textStyle TextStyle?
If non-null, the style to use for the counter text.
final
thousandSeparator String?
Insert a symbol between every 3 digits, for example: 1,000,000.
final
value num
The value of this counter.
final
wholeDigits int
How many digits to display, before the decimal point.
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.
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