DrivenSpinnerThemeData class
Defines the visual properties of DrivenSpinner.
Descendant widgets obtain the current DrivenSpinnerThemeData object using
DrivenSpinnerTheme.of(context)
. Instances of DrivenSpinnerThemeData
can be customized with DrivenSpinnerThemeData.copyWith or DrivenSpinnerThemeData.merge.
- Inheritance
-
- Object
- ThemeExtension<
DrivenSpinnerThemeData> - DrivenSpinnerThemeData
- Mixed-in types
Constructors
- DrivenSpinnerThemeData({double? size, Color? color, Color? backgroundColor, double width = 4, double offset = 0, bool rounded = true})
-
Creates a theme data that can be used for DrivenSpinnerTheme.
const
- DrivenSpinnerThemeData.from([DrivenSpinnerThemeData? other, DrivenSpinnerThemeData fallback = const DrivenSpinnerThemeData()])
- Creates a DrivenSpinnerThemeData from another one that probably null.
Properties
- backgroundColor → Color?
-
The background color of the spinner.
final
- color → Color?
-
The color of the spinner.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- offset → double
-
The offset of the spinner's stroke.
final
- rounded → bool
-
Whether the spinner's stroke is rounded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double?
-
The size of the spinner.
final
- type → Object
-
The extension's type.
no setterinherited
- width → double
-
The width of the spinner's stroke.
final
Methods
-
copyWith(
{double? size, Color? color, Color? backgroundColor, double? width, double? offset, bool? rounded}) → DrivenSpinnerThemeData -
Creates a copy of this DrivenSpinnerThemeData but with
the given fields replaced with the new values.
override
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
lerp(
covariant DrivenSpinnerThemeData? other, double t) → DrivenSpinnerThemeData -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
DrivenSpinnerThemeData? other) → DrivenSpinnerThemeData - Creates a copy of this DrivenSpinnerThemeData but with the given fields replaced with the new values.
-
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
-
toMap(
) → Map< String, dynamic> -
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override