AvatarThemeData class
Defines the visual properties of Avatar.
Descendant widgets obtain the current AvatarThemeData object using
AvatarTheme.of(context)
. Instances of AvatarThemeData
can be customized with AvatarThemeData.copyWith or AvatarThemeData.merge.
- Inheritance
-
- Object
- ThemeExtension<
AvatarThemeData> - AvatarThemeData
- Mixed in types
- Implementers
- Annotations
Constructors
- AvatarThemeData({required Curve curve, required Duration duration, required AvatarStyle style})
-
Creates a theme data that can be used for AvatarTheme.
const
- AvatarThemeData.defaults(BuildContext context)
-
An AvatarThemeData with default values.
factory
- AvatarThemeData.from([AvatarThemeData? other])
- Creates an AvatarThemeData from another one that probably null.
Properties
- curve → Curve
-
The curve to apply when animating the parameters of avatar widget.
final
- duration → Duration
-
The duration over which to animate the parameters of avatar widget.
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 → AvatarStyle
-
The AvatarStyle to be applied to the avatar widget
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{Curve? curve, Duration? duration, AvatarStyle? style}) → AvatarThemeData -
Creates a copy of this AvatarThemeData 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 ThemeExtension< AvatarThemeData> ? other, double t) → AvatarThemeData -
Linearly interpolate with another ThemeExtension object.
override
-
merge(
AvatarThemeData? other) → AvatarThemeData - Creates a copy of this AvatarThemeData 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
Constants
- fallback → const AvatarThemeData
- An AvatarThemeData with some reasonable default values.