BadgeThemeData class

Defines the visual properties of Badge.

Descendant widgets obtain the current BadgeThemeData object using BadgeTheme.of(context). Instances of BadgeThemeData can be customized with BadgeThemeData.copyWith or BadgeThemeData.merge.

Inheritance
Mixed in types
Implementers
Annotations

Constructors

BadgeThemeData({required Curve curve, required Duration duration, required AlignmentGeometry alignment, required Offset offset, required BadgeStyle style})
Creates a theme data that can be used for BadgeTheme.
const
BadgeThemeData.defaults(BuildContext context)
A BadgeThemeData with default values.
factory
BadgeThemeData.from([BadgeThemeData? other])
Creates a BadgeThemeData from another one that probably null.

Properties

alignment AlignmentGeometry
Align the badge content within the child.
final
curve Curve
The curve to apply when animating the parameters of badge widget.
final
duration Duration
The duration over which to animate the parameters of badge widget.
final
hashCode int
The hash code for this object.
no setteroverride
offset Offset
Offset of the badge content
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style BadgeStyle
The BadgeStyle to be applied to the badge widget
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({Curve? curve, Duration? duration, AlignmentGeometry? alignment, Offset? offset, BadgeStyle? style}) BadgeThemeData
Creates a copy of this BadgeThemeData 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<BadgeThemeData>? other, double t) BadgeThemeData
Linearly interpolate with another ThemeExtension object.
override
merge(BadgeThemeData? other) BadgeThemeData
Creates a copy of this BadgeThemeData 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 BadgeThemeData
An BadgeThemeData with some reasonable default values.