NumberTickerTheme class
Theme configuration for NumberTicker widgets.
Provides default styling values that can be overridden on individual NumberTicker instances. This allows for consistent styling across multiple number tickers in an application while still permitting per-instance customization when needed.
Used with ComponentTheme to provide theme values throughout the widget tree.
Example:
ComponentTheme<NumberTickerTheme>(
data: NumberTickerTheme(
duration: Duration(milliseconds: 800),
curve: Curves.bounceOut,
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
child: MyApp(),
);
Constructors
- NumberTickerTheme({Duration? duration, Curve? curve, TextStyle? style})
-
Creates a NumberTickerTheme with the specified styling options.
const
Properties
- curve → Curve?
-
The default animation curve for number transitions.
final
- duration → Duration?
-
The default animation duration for number transitions.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → TextStyle?
-
The default text style for formatted number display.
final
Methods
-
copyWith(
{ValueGetter< Duration?> ? duration, ValueGetter<Curve?> ? curve, ValueGetter<TextStyle?> ? style}) → NumberTickerTheme - Creates a copy of this theme with the given values replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override